Fix '--ascii_colors' not changing text color in other modes
This commit is contained in:
parent
12cb33d274
commit
ae51ec40e8
1 changed files with 5 additions and 5 deletions
10
fetch
10
fetch
|
@ -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 () {
|
||||||
|
|
Loading…
Reference in a new issue