Update ascii changes
This commit is contained in:
parent
ec1705835c
commit
fd30321120
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -2208,10 +2208,10 @@ getascii () {
|
||||||
# Turn the file into a variable and strip escape codes.
|
# Turn the file into a variable and strip escape codes.
|
||||||
ascii_strip=$(<"$ascii")
|
ascii_strip=$(<"$ascii")
|
||||||
ascii_strip=${ascii_strip//\$\{??\}}
|
ascii_strip=${ascii_strip//\$\{??\}}
|
||||||
ascii_strip=${ascii_strip//'\\'}
|
ascii_strip=${ascii_strip//'\\'/ }
|
||||||
ascii_strip=${ascii_strip//'\'}
|
ascii_strip=${ascii_strip//'\'}
|
||||||
|
|
||||||
# Get length of longest line
|
# Get ascii file size in rows/cols
|
||||||
ascii_size="$(awk 'END {printf NR " "}length>max{max=length}END{printf max}' <<< "$ascii_strip")"
|
ascii_size="$(awk 'END {printf NR " "}length>max{max=length}END{printf max}' <<< "$ascii_strip")"
|
||||||
lines=${ascii_size/ *}
|
lines=${ascii_size/ *}
|
||||||
ascii_length=${ascii_size/$lines}
|
ascii_length=${ascii_size/$lines}
|
||||||
|
|
Reference in a new issue