weather every run error fix

This commit is contained in:
Luke Smith 2020-03-25 17:35:30 -04:00
parent 77cd1bcd44
commit ee2f8e9302
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

View file

@ -16,7 +16,7 @@ case $BLOCK_BUTTON in
🌞: Daily high" ;; 🌞: Daily high" ;;
esac esac
if [ "$(stat -c %y "$HOME/.local/share/weatherreport" >/dev/null 2>&1 | awk '{print $1}')" != "$(date '+%Y-%m-%d')" ] if [ "$(stat -c %y "$HOME/.local/share/weatherreport" 2>/dev/null | awk '{print $1}')" != "$(date '+%Y-%m-%d')" ]
then getforecast && showweather then getforecast && showweather
else showweather else showweather
fi fi