From b3bdb3dbddc6db386140f6f3dd9aae45e1c67174 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 24 Sep 2019 15:11:55 +0300 Subject: [PATCH] pfetch: type not posix --- pfetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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