aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-12-09 08:24:49 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-12-09 08:24:49 +0530
commit7150565b512b80339e86ed7632baef1a31ac8a40 (patch)
tree5bbc6449a19a67577c090056482d25cabe5c111c /scripts
parent9238403eb9a94697d0d0062399ccdb07b5a909ad (diff)
fixed temp. not showing up for Shallow weather
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/weather2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/weather b/scripts/weather
index f960d040..7d7d6a36 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" ]; then
+ elif [ $stat = "Haze" ] || [ $stat = "Fog" ] || [ $stat = "Shallow" ]; then
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