mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-01-03 00:12:11 +01:00
pfetch: Fix blank lines
This commit is contained in:
6
pfetch
6
pfetch
@@ -1466,8 +1466,14 @@ main() {
|
|||||||
info_length=$((info_length + 1))
|
info_length=$((info_length + 1))
|
||||||
|
|
||||||
while IFS= read -r line || [ "$1" ]; do
|
while IFS= read -r line || [ "$1" ]; do
|
||||||
|
# Iterate over the info skipping any lines
|
||||||
|
# which are blank.
|
||||||
|
for info; do
|
||||||
"get_$1"
|
"get_$1"
|
||||||
shift "$(($# ? 1 : 0))"
|
shift "$(($# ? 1 : 0))"
|
||||||
|
[ "$out" ] && break
|
||||||
|
done
|
||||||
|
|
||||||
printf '\033[%sC%s\r%s\n' "$ascii_width" "$out" "$line" >&6
|
printf '\033[%sC%s\r%s\n' "$ascii_width" "$out" "$line" >&6
|
||||||
out=
|
out=
|
||||||
done <<-EOF
|
done <<-EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user