pfetch: Fix potential align issue
This commit is contained in:
parent
44aaae774f
commit
3a33033120
2
pfetch
2
pfetch
|
@ -88,7 +88,7 @@ log() {
|
||||||
# Move the cursor backward the length of the *current* info name and
|
# Move the cursor backward the length of the *current* info name and
|
||||||
# then move it forwards the length of the *longest* info name. This
|
# then move it forwards the length of the *longest* info name. This
|
||||||
# aligns each info data line.
|
# aligns each info data line.
|
||||||
printf '[%sD[%sC' "${#name}" "${PF_ALIGN-$info_length}"
|
printf '[%sD[%sC' "${#name}" "${PF_ALIGN:-$info_length}"
|
||||||
|
|
||||||
# Print the info data, color it and strip all leading whitespace
|
# Print the info data, color it and strip all leading whitespace
|
||||||
# from the string.
|
# from the string.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user