Merge pull request #298 from dylanaraps/ascii
Custom ascii art: Use same format as distro ascii
This commit is contained in:
commit
c34759b2da
13
neofetch
13
neofetch
|
@ -2211,18 +2211,11 @@ getascii () {
|
|||
|
||||
ascii="$script_dir/ascii/distro/${ascii/ *}"
|
||||
fi
|
||||
|
||||
# We only use eval in the distro ascii files.
|
||||
print="$(eval printf "$(<"$ascii")")"
|
||||
else
|
||||
case "${ascii_colors[0]}" in
|
||||
"distro") ascii_color="$c1" ;;
|
||||
*) ascii_color="\033[38;5;${ascii_colors[0]}m" ;;
|
||||
esac
|
||||
|
||||
print="${ascii_color}$(<"$ascii")"
|
||||
fi
|
||||
|
||||
# Eval colors
|
||||
print="$(eval printf "$(<"$ascii")")"
|
||||
|
||||
# Set locale to get correct padding
|
||||
export LC_ALL="$SYS_LOCALE"
|
||||
|
||||
|
|
Reference in New Issue