weather fix

This commit is contained in:
Luke Smith 2019-05-02 20:25:45 -04:00
parent ed5b3d49ab
commit a9ff1f56c7

View file

@ -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 ;}