[+] ! IMPORTANT ! - Patch neofetch
This commit is contained in:
@@ -4067,11 +4067,16 @@ print_ascii() {
|
|||||||
LC_ALL="$sys_locale"
|
LC_ALL="$sys_locale"
|
||||||
|
|
||||||
# Calculate size of ascii file in line length / line count.
|
# Calculate size of ascii file in line length / line count.
|
||||||
while IFS=$'\n' read -r line; do
|
if [ -n "$ascii_len" ] && [ -n "$ascii_lines" ]
|
||||||
line=${line//\\\\/\\}
|
then
|
||||||
line=${line//█/ }
|
lines=$ascii_lines
|
||||||
((++lines,${#line}>ascii_len)) && ascii_len="${#line}"
|
else
|
||||||
done <<< "${ascii_data//\$\{??\}}"
|
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.
|
# Fallback if file not found.
|
||||||
((lines==1)) && {
|
((lines==1)) && {
|
||||||
@@ -11589,4 +11594,13 @@ main() {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_print_ascii() {
|
||||||
|
cache_uname
|
||||||
|
get_os
|
||||||
|
get_distro
|
||||||
|
get_bold
|
||||||
|
get_distro_ascii
|
||||||
|
echo "$ascii_data"
|
||||||
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user