pfetch: Fix blank lines
This commit is contained in:
parent
a8a3e1f2fe
commit
c0d0d65aa0
10
pfetch
10
pfetch
|
@ -1466,8 +1466,14 @@ main() {
|
|||
info_length=$((info_length + 1))
|
||||
|
||||
while IFS= read -r line || [ "$1" ]; do
|
||||
"get_$1"
|
||||
shift "$(($# ? 1 : 0))"
|
||||
# Iterate over the info skipping any lines
|
||||
# which are blank.
|
||||
for info; do
|
||||
"get_$1"
|
||||
shift "$(($# ? 1 : 0))"
|
||||
[ "$out" ] && break
|
||||
done
|
||||
|
||||
printf '\033[%sC%s\r%s\n' "$ascii_width" "$out" "$line" >&6
|
||||
out=
|
||||
done <<-EOF
|
||||
|
|
Loading…
Reference in New Issue
Block a user