diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2019-09-26 21:04:18 +0300 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2019-09-26 21:04:18 +0300 |
| commit | c2924d79b96d2e0e83c6de897ecbd170e1c31547 (patch) | |
| tree | 4aac8e400817f45f93693e488086fd8c02d9fa08 | |
| parent | 74891879240aa070ea7621a99b796d0862d55414 (diff) | |
| download | pfetch-c2924d79b96d2e0e83c6de897ecbd170e1c31547.tar.gz | |
more comments
"
| -rwxr-xr-x | pfetch | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 " |
