diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-05-03 18:05:18 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-05-03 18:05:18 +0300 |
commit | ff88fbca675945015a0c59b18be65b74cdd7d989 (patch) | |
tree | ddda5b6cebccc5c1fdf13d12980bf26286cf4adf /dotfiles/.local/bin/barweather | |
parent | 1ef2e3684883380d0ac9c978db470f4856e4904f (diff) | |
download | swayrice-ff88fbca675945015a0c59b18be65b74cdd7d989.tar.gz swayrice-ff88fbca675945015a0c59b18be65b74cdd7d989.zip |
changes to waybar weather script
Diffstat (limited to 'dotfiles/.local/bin/barweather')
-rwxr-xr-x | dotfiles/.local/bin/barweather | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/dotfiles/.local/bin/barweather b/dotfiles/.local/bin/barweather index 042fc52..1fd2c6c 100755 --- a/dotfiles/.local/bin/barweather +++ b/dotfiles/.local/bin/barweather @@ -5,10 +5,6 @@ location="Saint Petersburg" update_freq=1800 obsolete_after=10800 -if [ -n "$location" ]; then - location="~${location// /+}" -fi - update_forecast() { # Check several times before giving up, useful when just waking up from sleep # since internet is usually not available right away @@ -35,7 +31,7 @@ else fi if [ ! -f "$cachefile" ]; then - exit + exit fi cat "$cachefile" |