aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2025-05-04 12:49:26 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2025-05-04 12:49:26 +0300
commit073210da5463f2e49944b7dbe4fde5faaf2d2fa5 (patch)
treee25e8eb6cb60c26f7e17c8a91a446f3fe0dc4cc3 /dotfiles/.local
parent1fa4b62d678fc0b21f976a9c01582101df5996cd (diff)
downloadswayrice-073210da5463f2e49944b7dbe4fde5faaf2d2fa5.tar.gz
swayrice-073210da5463f2e49944b7dbe4fde5faaf2d2fa5.zip
barweather: remove excess spaces from input
Diffstat (limited to 'dotfiles/.local')
-rwxr-xr-xdotfiles/.local/bin/barweather2
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
}