diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-11-19 22:56:55 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-11-19 22:56:55 +0100 |
commit | 250604502694ca2093eb1b9af9a93e2f97522f56 (patch) | |
tree | 64c2333c7e4a4af3554ebfa6d960f3202e63d1be | |
parent | d5a7835096e5217ed527a0682aa4e793b1775c94 (diff) | |
download | scripts-250604502694ca2093eb1b9af9a93e2f97522f56.tar.gz scripts-250604502694ca2093eb1b9af9a93e2f97522f56.zip |
Ok, shellcheck, you win, I'll use grep -F.
-rwxr-xr-x | i3blocks/i3moon.sh | 16 |
1 files changed, 8 insertions, 8 deletions
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" |