diff --git a/script/install-wild b/script/install-wild index 3f8a5a2b3ff613285b3f02c0069e5c5829ba3744..4c2d0348965d54e45273800ffde3ce53bf3f7c83 100755 --- a/script/install-wild +++ b/script/install-wild @@ -11,8 +11,8 @@ if [ "$(uname -s)" != "Linux" ]; then elif [ -z "$WILD_VERSION" ]; then echo "Usage: $0 [version]" exit 1 -elif which -s wild && wild --version | grep -Fq "$WILD_VERSION" ; then - echo "Warning: existing wild $WILD_VERSION found at $(which wild). Skipping installation." +elif command -v wild >/dev/null 2>&1 && wild --version | grep -Fq "$WILD_VERSION" ; then + echo "Warning: existing wild $WILD_VERSION found at $(command -v wild). Skipping installation." exit 0 fi