Only match the first word of ''

This commit is contained in:
Dylan 2016-02-23 17:13:23 +11:00
parent 8df9914158
commit 4d22ecf6ef

7
fetch
View file

@ -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
;;