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
|
# Overwrite distro colors if '$ascii_colors' doesn't
|
||||||
# equal 'distro'.
|
# equal 'distro'.
|
||||||
if [ "${ascii_colors[0]}" != "distro" ]; then
|
[ "${ascii_colors[0]}" != "distro" ] && \
|
||||||
c1=$(color "${ascii_colors[0]}")
|
ascii_colors ${ascii_colors[@]}
|
||||||
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
|
|
||||||
|
|
||||||
# We only use eval in the distro ascii files.
|
# We only use eval in the distro ascii files.
|
||||||
print="$(eval printf "$(<"$ascii")")"
|
print="$(eval printf "$(<"$ascii")")"
|
||||||
|
|
Reference in New Issue