weather fix
This commit is contained in:
parent
ed5b3d49ab
commit
a9ff1f56c7
1 changed files with 1 additions and 1 deletions
|
@ -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 ;}
|
||||
|
|
Loading…
Reference in a new issue