mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-11-02 13:30:31 +00:00
pfetch: type not posix
This commit is contained in:
1 parent
9bc53fedde
commit
b3bdb3dbdd
1 file changed
+1
-1
@@ -316,7 +316,7 @@ main() {
|
|||||||
# "info names" for output alignment. The option names and subtitles
|
# "info names" for output alignment. The option names and subtitles
|
||||||
# match 1:1 so this is thankfully simple.
|
# match 1:1 so this is thankfully simple.
|
||||||
for info; do
|
for info; do
|
||||||
type "get_$info" >/dev/null &&
|
command -v "get_$info" >/dev/null &&
|
||||||
info_length=$((${#info} > info_length ? ${#info} : info_length))
|
info_length=$((${#info} > info_length ? ${#info} : info_length))
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user