From 4d22ecf6efedaddb8224d99eb0a04cf18dd0a8fc Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 23 Feb 2016 17:13:23 +1100 Subject: [PATCH] Only match the first word of '' --- fetch | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fetch b/fetch index 41bd35e1..1f3ef62d 100755 --- a/fetch +++ b/fetch @@ -1950,7 +1950,7 @@ getunderline () { colors () { # Change color of logo based on distro case "$ascii_distro" in - "Arch Linux"* | "Antergos"*) + "Arch"* | "Antergos"*) setcolors 6 4 ;; @@ -1971,7 +1971,7 @@ colors () { setcolors 7 1 3 ;; - "Red Hat"*) + "Red"*) setcolors 7 1 3 ascii_distro="redhat" ;; @@ -1992,7 +1992,7 @@ colors () { setcolors 4 7 1 ;; - "Mac OS X"* | "Manjaro"* | "Deepin"*) + "Mac"* | "Manjaro"* | "Deepin"*) setcolors 2 3 1 1 5 4 ;; @@ -2396,7 +2396,6 @@ while [ "$1" ]; do ;; --ascii_distro) - image="ascii" ascii_distro="$2" case "$2" in "--"* | "") ascii_distro="$distro" ;; esac ;;