Reduce size of if block
This commit is contained in:
parent
8891cce908
commit
b21533d842
10
fetch
10
fetch
|
@ -1766,14 +1766,8 @@ getascii () {
|
|||
|
||||
# Overwrite distro colors if '$ascii_colors' doesn't
|
||||
# equal 'distro'.
|
||||
if [ "${ascii_colors[0]}" != "distro" ]; then
|
||||
c1=$(color "${ascii_colors[0]}")
|
||||
c2=$(color "${ascii_colors[1]}")
|
||||
c3=$(color "${ascii_colors[2]}")
|
||||
c4=$(color "${ascii_colors[3]}")
|
||||
c5=$(color "${ascii_colors[4]}")
|
||||
c6=$(color "${ascii_colors[5]}")
|
||||
fi
|
||||
[ "${ascii_colors[0]}" != "distro" ] && \
|
||||
ascii_colors ${ascii_colors[@]}
|
||||
|
||||
# We only use eval in the distro ascii files.
|
||||
print="$(eval printf "$(<"$ascii")")"
|
||||
|
|
Reference in New Issue