diff --git a/.scripts/statusbar/weather b/.scripts/statusbar/weather index e298bda..e4de680 100755 --- a/.scripts/statusbar/weather +++ b/.scripts/statusbar/weather @@ -1,5 +1,5 @@ #!/bin/sh -location="$1"; [ -z "$location" ] || location="$location+" && rm -f "$HOME/.local/share/weatherreport" +location="$1"; [ -z "$location" ] || { location="$location+" && rm -f "$HOME/.local/share/weatherreport" ;} getforecast() { ping -q -c 1 1.1.1.1 >/dev/null || exit 1 curl -s "wttr.in/$location" > "$HOME/.local/share/weatherreport" || exit 1 ;}