aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpfetch7
1 files changed, 7 insertions, 0 deletions
diff --git a/pfetch b/pfetch
index 3753592..50eba38 100755
--- a/pfetch
+++ b/pfetch
@@ -535,6 +535,13 @@ get_ascii() {
PF_COL1=${PF_COL1:-${1:-7}}
PF_COL3=${PF_COL3:-$((${1:-7}%8+1))}
+ # POSIX sh has no 'var+=' so 'var=${var}append' is used. What's
+ # interesting is that 'var+=' _is_ supported inside '$(())'
+ # (arithmetic) though there's no support for 'var++/var--'.
+ #
+ # There is also no $'\n' to add a "literal"(?) newline to the
+ # string. The simplest workaround being to break the line inside
+ # the string (though this has the caveat of breaking indentation).
while IFS= read -r line; do
ascii="$ascii$line
"