Only match the first word of ''
This commit is contained in:
parent
8df9914158
commit
4d22ecf6ef
1 changed files with 3 additions and 4 deletions
7
fetch
7
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
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue