diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/weather | 2 |
1 files changed, 1 insertions, 1 deletions
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") |