summaryrefslogtreecommitdiffstats
path: root/.local/bin/statusbar
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2023-02-17 12:12:10 -0500
committerLuke Smith <luke@lukesmith.xyz>2023-02-17 12:12:10 -0500
commit762eadd9d19e1433a6552e86ec6a68b9f4413dc2 (patch)
tree161690484444af8dcb383cada3553a1c15062821 /.local/bin/statusbar
parentad6ecdb3fc4f9c730cbdd7173313eabf55649ed3 (diff)
downloadeibhear-762eadd9d19e1433a6552e86ec6a68b9f4413dc2.tar.gz
eibhear-762eadd9d19e1433a6552e86ec6a68b9f4413dc2.tar.zst
eibhear-762eadd9d19e1433a6552e86ec6a68b9f4413dc2.zip
fix #1275
Diffstat (limited to '.local/bin/statusbar')
-rwxr-xr-x.local/bin/statusbar/sb-forecast2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/statusbar/sb-forecast b/.local/bin/statusbar/sb-forecast
index e28f22f..2a6440b 100755
--- a/.local/bin/statusbar/sb-forecast
+++ b/.local/bin/statusbar/sb-forecast
@@ -25,7 +25,7 @@ getdailyhighlow() {
echo "$weatherdata" | sed '13q;d' | # Extract line 13 from file
grep -o "m\\([-+]\\)*[0-9]\\+" | # Find temperatures in the format "m<signed number>"
sed 's/[+m]//g' | # Remove '+' and 'm'
- sort -n -k 2n | # Sort in ascending order
+ sort -g | # Sort in ascending order
sed -e 1b -e '$!d' # Extract the first and last lines
}