more comments

"
This commit is contained in:
Dylan Araps 2019-09-26 21:04:18 +03:00
parent 7489187924
commit c2924d79b9

7
pfetch
View File

@ -535,6 +535,13 @@ get_ascii() {
PF_COL1=${PF_COL1:-${1:-7}} PF_COL1=${PF_COL1:-${1:-7}}
PF_COL3=${PF_COL3:-$((${1:-7}%8+1))} 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 while IFS= read -r line; do
ascii="$ascii$line ascii="$ascii$line
" "