From 250604502694ca2093eb1b9af9a93e2f97522f56 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Tue, 19 Nov 2019 22:56:55 +0100 Subject: Ok, shellcheck, you win, I'll use grep -F. --- i3blocks/i3moon.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'i3blocks') diff --git a/i3blocks/i3moon.sh b/i3blocks/i3moon.sh index 4bacaf6..9caa0f3 100755 --- a/i3blocks/i3moon.sh +++ b/i3blocks/i3moon.sh @@ -3,14 +3,14 @@ # Shows an emoji with the phase of the moon [ ! -f "/bin/pom" ] && echo "🌜 bsd-games not installed. 🌛" && exit 0 -pom | fgrep -q "New" && moon=🌚 -pom | fgrep -q "Waxing Crescent" && moon=🌒 -pom | fgrep -q "First Quarter" && moon=🌓 -pom | fgrep -q "Waxing Gibbous" && moon=🌔 -pom | fgrep -q "is Full" && moon=🌝 -pom | fgrep -q "Waning Gibbous" && moon=🌖 -pom | fgrep -q "Last Quarter" && moon=🌗 -pom | fgrep -q "Waning Crescent" && moon=🌘 +pom | grep -F -q "New" && moon=🌚 +pom | grep -F -q "Waxing Crescent" && moon=🌒 +pom | grep -F -q "First Quarter" && moon=🌓 +pom | grep -F -q "Waxing Gibbous" && moon=🌔 +pom | grep -F -q "is Full" && moon=🌝 +pom | grep -F -q "Waning Gibbous" && moon=🌖 +pom | grep -F -q "Last Quarter" && moon=🌗 +pom | grep -F -q "Waning Crescent" && moon=🌘 echo "$moon" -- cgit v1.2.1