From 05a9dcda54136a3070d9c23c03f5147950d850e5 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 14 Jan 2025 09:44:14 -0500 Subject: [PATCH] Silence `command -v pkgx` --- installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer.sh b/installer.sh index bc6686f3..bc4107c5 100755 --- a/installer.sh +++ b/installer.sh @@ -107,7 +107,7 @@ _install_pkgx() { rm -r "$tmpdir" - if [ "$(command -v pkgx)" != /usr/local/bin/pkgx ]; then + if [ "$(command -v pkgx >/dev/null 2>&1)" != /usr/local/bin/pkgx ]; then echo "warning: active pkgx is not /usr/local/bin/pkgx" >&2 export PATH="/usr/local/bin:$PATH" # so we can exec if required fi