mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-01-02 16:02:12 +01:00
pfetch: type not posix
This commit is contained in:
2
pfetch
2
pfetch
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user