Fix '--ascii_colors' not changing text color in other modes

This commit is contained in:
Dylan 2016-02-23 20:06:35 +11:00
parent 12cb33d274
commit ae51ec40e8

10
fetch
View file

@ -1612,11 +1612,6 @@ getascii () {
ascii="$script_dir/ascii/distro/${ascii/ *}" ascii="$script_dir/ascii/distro/${ascii/ *}"
fi fi
# Overwrite distro colors if '$ascii_colors' doesn't
# equal 'distro'.
[ "${ascii_colors[0]}" != "distro" ] && \
setcolors ${ascii_colors[@]}
# 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")")"
else else
@ -2066,6 +2061,11 @@ colors () {
setcolors 2 1 setcolors 2 1
;; ;;
esac esac
# Overwrite distro colors if '$ascii_colors' doesn't
# equal 'distro'.
[ "${ascii_colors[0]}" != "distro" ] && \
setcolors ${ascii_colors[@]}
} }
setcolors () { setcolors () {