From 93657d7a40972e39ea8d059efad608a39b372985 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Fri, 25 Dec 2020 20:37:58 +0530 Subject: fixed temp. not showing for Sunny weather --- scripts/weather | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/weather b/scripts/weather index 5aa47413..33208fc4 100755 --- a/scripts/weather +++ b/scripts/weather @@ -1,7 +1,7 @@ #!/bin/zsh get_current_temp() { - if [ $stat = "Smoke" ]; then + if [ $stat = "Smoke" ] || [ $stat = "Sunny" ]; 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") 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") -- cgit v1.2.3