aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpfetch2
1 files changed, 1 insertions, 1 deletions
diff --git a/pfetch b/pfetch
index d4ad2d2..4fa85bc 100755
--- a/pfetch
+++ b/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