aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-09-24 18:20:37 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-09-24 18:20:37 +0300
commit59cb85b3f9679efb668623c71f0ad2e4eb867118 (patch)
tree1ba82d5c435e0d06dfecd07343de9a5c34e985b6
parent0f683ca0222b2e781b72a7c4081c391d29c819ee (diff)
downloadpfetch-59cb85b3f9679efb668623c71f0ad2e4eb867118.tar.gz
pfetch: clean up
-rwxr-xr-xpfetch4
1 files changed, 2 insertions, 2 deletions
diff --git a/pfetch b/pfetch
index 98fe66b..3edd68a 100755
--- a/pfetch
+++ b/pfetch
@@ -418,7 +418,7 @@ get_ascii() {
#
# The " " acts as the padding between the ascii art and the text as
# 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_width=$((${#line} > ascii_width ? ${#line} : ascii_width))
done <<-EOF
@@ -426,7 +426,7 @@ get_ascii() {
EOF
# 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
# started prior to printing it.