summaryrefslogtreecommitdiffstats
path: root/.scripts/statusbar/weather
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-05-02 20:25:45 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-05-02 20:25:45 -0400
commita9ff1f56c75cb6e8836d59ea71324456e793a2b3 (patch)
tree8cf2850e6c4c6ec8e3f9da681ee5c81f675ca58e /.scripts/statusbar/weather
parented5b3d49ab6283f38ce4a2367622cb3c199d9a0a (diff)
downloadeibhear-a9ff1f56c75cb6e8836d59ea71324456e793a2b3.tar.gz
eibhear-a9ff1f56c75cb6e8836d59ea71324456e793a2b3.tar.zst
eibhear-a9ff1f56c75cb6e8836d59ea71324456e793a2b3.zip
weather fix
Diffstat (limited to '.scripts/statusbar/weather')
-rwxr-xr-x.scripts/statusbar/weather2
1 files changed, 1 insertions, 1 deletions
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 ;}