From 06792242e69ebb98bde1364099e6090e425d547e Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Sun, 12 Nov 2023 20:26:23 +0500 Subject: [PATCH] hama beykaaru step eh --- bot.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot.sh b/bot.sh index 47151df..c0d55f0 100755 --- a/bot.sh +++ b/bot.sh @@ -23,8 +23,7 @@ echo Camera Image grabbed ################################################################################# echo Grabbing Satellite Image # scrap html and get image link -satellite_image_url=$(curl "https://www.meteorology.gov.mv/?pd=satellite" -s | \ - grep "https://mobile.codeworks.mv/uploads/Satellite/"| \ +satellite_image_url=$(curl "https://www.meteorology.gov.mv/" -s | \ grep -o 'https://mobile.codeworks.mv/uploads/Satellite/[^"]*' | \ tail -n 1) # Download the Setellite Image