Reduce size of if block

This commit is contained in:
Dylan 2016-02-17 11:01:26 +11:00
parent 8891cce908
commit b21533d842
1 changed files with 2 additions and 8 deletions

10
fetch
View File

@ -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")")"