Commit 62e52dd2 authored by Dylan Araps's avatar Dylan Araps

Eval colors in custom ascii files

parent d21285c7
......@@ -2215,17 +2215,10 @@ getascii () {
ascii="$script_dir/ascii/distro/${ascii/ *}"
fi
fi
# We only use eval in the distro ascii files.
# Eval colors
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
# Set locale to get correct padding
export LC_ALL="$SYS_LOCALE"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment