[+] ! IMPORTANT ! - Patch neofetch
This commit is contained in:
parent
1389a5b2ce
commit
732389ffe0
1 changed files with 19 additions and 5 deletions
14
neofetch
14
neofetch
|
@ -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 "$@"
|
||||
|
|
Loading…
Reference in a new issue