diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2025-05-04 12:49:26 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2025-05-04 12:49:26 +0300 |
commit | 073210da5463f2e49944b7dbe4fde5faaf2d2fa5 (patch) | |
tree | e25e8eb6cb60c26f7e17c8a91a446f3fe0dc4cc3 /dotfiles/.local | |
parent | 1fa4b62d678fc0b21f976a9c01582101df5996cd (diff) | |
download | swayrice-073210da5463f2e49944b7dbe4fde5faaf2d2fa5.tar.gz swayrice-073210da5463f2e49944b7dbe4fde5faaf2d2fa5.zip |
barweather: remove excess spaces from input
Diffstat (limited to 'dotfiles/.local')
-rwxr-xr-x | dotfiles/.local/bin/barweather | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dotfiles/.local/bin/barweather b/dotfiles/.local/bin/barweather index 3fc7f42..a608b80 100755 --- a/dotfiles/.local/bin/barweather +++ b/dotfiles/.local/bin/barweather @@ -12,7 +12,7 @@ update_forecast() { forecast=$(curl -s wttr.in/"$location"?format=1) if [ ${#forecast} -lt 30 ]; then - printf "%s\n" "$forecast" > "$cachefile" + printf "%s\n" "$forecast" | sed -e 's/ / /g' > "$cachefile" fi } |