summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-09-06 17:18:35 +0200
committerJoe <bousset.rudy@gmail.com>2022-09-06 17:18:35 +0200
commit27204a45a4f259f1aa9bf2dfc53f1ad0225dfab0 (patch)
treee21954b9599419383df445d1f02fef3f579be460 /.local
parentup (diff)
downloaddotfiles-bsd-27204a45a4f259f1aa9bf2dfc53f1ad0225dfab0.tar.gz
dotfiles-bsd-27204a45a4f259f1aa9bf2dfc53f1ad0225dfab0.tar.bz2
dotfiles-bsd-27204a45a4f259f1aa9bf2dfc53f1ad0225dfab0.tar.xz
dotfiles-bsd-27204a45a4f259f1aa9bf2dfc53f1ad0225dfab0.tar.zst
dotfiles-bsd-27204a45a4f259f1aa9bf2dfc53f1ad0225dfab0.zip
fix
Diffstat (limited to '')
-rwxr-xr-x.local/bin/status/sb-forecast8
1 files changed, 4 insertions, 4 deletions
diff --git a/.local/bin/status/sb-forecast b/.local/bin/status/sb-forecast
index 413a280..c615161 100755
--- a/.local/bin/status/sb-forecast
+++ b/.local/bin/status/sb-forecast
@@ -9,9 +9,9 @@ weatherglyph=$(curl -sf "wttr.in/Lyon?format=%c" 2>&1 || exit 1) # >$weatherglyp
moonglyph=$(curl -sf "wttr.in/?format=%m" 2>&1 || exit 1) # >$moonglyph || exit 1
printf "%s%s" \
- "$(cat $weatherglyph)" \
- "$(sed '16q;d' "$weatherreport" | grep -wo "[0-9]*%" | sort -rn | sed "s/^/ /g;1q" | tr -d '\n')"
+ "$(echo "$weatherglyph ")" \
+ "$(echo "$weatherreport" | sed '16q;d' | grep -wo "[0-9]*%" | sort -rn | sed "s/^/ /g;1q" | tr -d '\n')"
-sed '13q;d' "$weatherreport" | grep -o "m\\([-+]\\)*[0-9]\\+" | sed 's/+//g' |
+echo "$weatherreport" | sed '13q;d' | grep -o "m\\([-+]\\)*[0-9]\\+" | sed 's/+//g' |
sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' |
- awk -v moon="$(cat $moonglyph)" '{print "  " $1 "/" $2 "°C " moon}'
+ awk -v moon="$(echo "$moonglyph")" '{print "  " $1 "/" $2 "°C " moon}'