[+] ! IMPORTANT ! - Patch neofetch

This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-04-10 05:12:02 -04:00
parent 1389a5b2ce
commit 732389ffe0

View file

@ -4067,11 +4067,16 @@ print_ascii() {
LC_ALL="$sys_locale"
# Calculate size of ascii file in line length / line count.
if [ -n "$ascii_len" ] && [ -n "$ascii_lines" ]
then
lines=$ascii_lines
else
while IFS=$'\n' read -r line; do
line=${line//\\\\/\\}
line=${line//█/ }
((++lines,${#line}>ascii_len)) && ascii_len="${#line}"
done <<< "${ascii_data//\$\{??\}}"
fi
# Fallback if file not found.
((lines==1)) && {
@ -11589,4 +11594,13 @@ main() {
return 0
}
get_print_ascii() {
cache_uname
get_os
get_distro
get_bold
get_distro_ascii
echo "$ascii_data"
}
main "$@"