diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2019-09-24 15:11:55 +0300 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2019-09-24 15:11:55 +0300 |
| commit | b3bdb3dbddc6db386140f6f3dd9aae45e1c67174 (patch) | |
| tree | bb801d261ee5ae6cd67112b7d59c9a37a975653b | |
| parent | 9bc53fedde9af6773a15fd3693c6ca1039284aad (diff) | |
| download | pfetch-b3bdb3dbddc6db386140f6f3dd9aae45e1c67174.tar.gz | |
pfetch: type not posix
| -rwxr-xr-x | pfetch | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -316,7 +316,7 @@ main() { # "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 && + command -v "get_$info" >/dev/null && info_length=$((${#info} > info_length ? ${#info} : info_length)) done |
