pfetch: clean up
This commit is contained in:
parent
0f683ca022
commit
59cb85b3f9
4
pfetch
4
pfetch
|
@ -418,7 +418,7 @@ get_ascii() {
|
||||||
#
|
#
|
||||||
# The " " acts as the padding between the ascii art and the text as
|
# The " " acts as the padding between the ascii art and the text as
|
||||||
# it appends 3 spaces to the end of each line.
|
# it appends 3 spaces to the end of each line.
|
||||||
while read -r line || [ -n "$line" ]; do
|
while read -r line; do
|
||||||
ascii_height=$((ascii_height + 1))
|
ascii_height=$((ascii_height + 1))
|
||||||
ascii_width=$((${#line} > ascii_width ? ${#line} : ascii_width))
|
ascii_width=$((${#line} > ascii_width ? ${#line} : ascii_width))
|
||||||
done <<-EOF
|
done <<-EOF
|
||||||
|
@ -426,7 +426,7 @@ get_ascii() {
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Add a gap between the ascii art and the information.
|
# Add a gap between the ascii art and the information.
|
||||||
ascii_width=$((ascii_width + 4))
|
: $((ascii_width+=4))
|
||||||
|
|
||||||
# Print the ascii art and position the cursor back where we
|
# Print the ascii art and position the cursor back where we
|
||||||
# started prior to printing it.
|
# started prior to printing it.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user