mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 20:12:31 +00:00
Fix '--ascii_colors' not changing text color in other modes
This commit is contained in:
10
fetch
10
fetch
@@ -1612,11 +1612,6 @@ getascii () {
|
||||
ascii="$script_dir/ascii/distro/${ascii/ *}"
|
||||
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.
|
||||
print="$(eval printf "$(<"$ascii")")"
|
||||
else
|
||||
@@ -2066,6 +2061,11 @@ colors () {
|
||||
setcolors 2 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# Overwrite distro colors if '$ascii_colors' doesn't
|
||||
# equal 'distro'.
|
||||
[ "${ascii_colors[0]}" != "distro" ] && \
|
||||
setcolors ${ascii_colors[@]}
|
||||
}
|
||||
|
||||
setcolors () {
|
||||
|
||||
Reference in New Issue
Block a user