pfetch: Fix potential align issue

This commit is contained in:
Dylan Araps 2020-03-12 22:01:30 +02:00
parent 44aaae774f
commit 3a33033120
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

2
pfetch
View File

@ -88,7 +88,7 @@ log() {
# Move the cursor backward the length of the *current* info name and
# then move it forwards the length of the *longest* info name. This
# 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
# from the string.