diff options
author | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-12-14 09:38:14 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-12-14 09:38:14 +0530 |
commit | 03c40f935cb96e3ac98b893162da8ab4f134f83e (patch) | |
tree | 6e21cca6be2e0c2b5b20f9dc2b1443d1f4a29fa9 | |
parent | 6b677ffe062278d64da9f2a1aa1361f3ece1141c (diff) |
weather script now correctly shows current trmperature under most weather conditions
-rwxr-xr-x | scripts/weather | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/weather b/scripts/weather index 7d7d6a36..5aa47413 100755 --- a/scripts/weather +++ b/scripts/weather @@ -3,7 +3,7 @@ get_current_temp() { if [ $stat = "Smoke" ]; then temp=$(curl wttr.in | grep °C | awk 'NR==1 {print $4 "°C"}' | sed -r "s/\x1B\[(([0-9]+)(;[0-9]+)*)?[m,K,H,f,J]//g") - elif [ $stat = "Haze" ] || [ $stat = "Fog" ] || [ $stat = "Shallow" ]; then + else temp=$(curl wttr.in | grep °C | awk 'NR==1 {print $9 "°C"}' | sed -r "s/\x1B\[(([0-9]+)(;[0-9]+)*)?[m,K,H,f,J]//g") fi |