From beaa788dea2fef0b447f7c455dbb09f088fc464c Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 16 Jun 2018 08:17:17 -0400 Subject: [PATCH] weather module rain check fix --- .scripts/i3weather | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scripts/i3weather b/.scripts/i3weather index a2fef4e..cf135be 100755 --- a/.scripts/i3weather +++ b/.scripts/i3weather @@ -12,6 +12,6 @@ if [[ "$location" != "" ]] fi curl -s wttr.in/$location > ~/.weatherreport -echo -n $(cat ~/.weatherreport | sed -n 16p | sed -e 's/[^m]*m//g' | grep -o "[0-9]*%" | sort -n | sed -e "$!d;s/^/☔ /") +echo -n $(cat ~/.weatherreport | sed -n 16p | sed -e 's/[^m]*m//g' | grep -o "[0-9]*%" | sort -n | sed -e '$!d' | sed -e "s/^/☔ /g") cat ~/.weatherreport | sed -n 13p | sed -e 's/[^m]*m//g;s/[^0-9]/ /g;s/ /\n/g;/^s*$/d' | grep [0-9] | sort -n | sed -e 1b -e '$!d' | tr '\n' ' ' | awk '{print " ❄️",$1 "°","☀️",$2 "°"}'