From 07cc87b288b9b9c575ccb696f383a54b7474bd8b Mon Sep 17 00:00:00 2001 From: Alvaro Parker <64918109+AlvaroParker@users.noreply.github.com> Date: Sat, 15 Nov 2025 11:15:37 -0300 Subject: [PATCH] Fix wild install script (#42747) Use [`command`](https://www.gnu.org/software/bash/manual/bash.html#index-command) instead of `which` to check if `wild` is installed. Using `which` will result in an error being printed to stdout: ```bash ./script/install-wild which: invalid option -- 's' /usr/local/bin/wild Warning: existing wild 0.6.0 found at /usr/local/bin/wild. Skipping installation. ``` Release Notes: - N/A --- script/install-wild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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