fix weather module
This commit is contained in:
parent
93e38687e1
commit
64c3a43165
|
@ -63,7 +63,7 @@ PRINT() {
|
|||
if [ -e "/tmp/itest" ]; then
|
||||
if [ -e "/tmp/wstatus" ]; then
|
||||
grep -q "Unknown location" /tmp/wstatus && exit
|
||||
grep -q "<html>" /tmp/wstatus || exit
|
||||
grep -q "<html>" /tmp/wstatus && exit
|
||||
echo "$SEPARATOR $ITEM5_ICON $(cat /tmp/wstatus)"
|
||||
else
|
||||
echo "$(curl -s wttr.in/?format="%C"), $(curl -s wttr.in/?format=3 | sed 's/.* //; s/.*\(.....\)/\1/')" > /tmp/wstatus
|
||||
|
|
Loading…
Reference in a new issue