pfetch: only calculate alignment if function exists
This commit is contained in:
parent
760afc0443
commit
2b23aa02bc
1 changed files with 2 additions and 1 deletions
1
pfetch
1
pfetch
|
@ -314,6 +314,7 @@ EOF
|
|||
# "info names" for output alignment. The option names and subtitles
|
||||
# match 1:1 so this is thankfully simple.
|
||||
for info; do
|
||||
type "get_$info" >/dev/null &&
|
||||
info_length=$((${#info} > info_length ? ${#info} : info_length))
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue