Skip to content

Commit

Permalink
Merge pull request #257 from pkgxdev/silence-command-v
Browse files Browse the repository at this point in the history
Silence `command -v pkgx`
  • Loading branch information
mxcl authored Jan 14, 2025
2 parents bb5bfac + 05a9dcd commit a8dbd1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a8dbd1e

Please sign in to comment.