Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix wild install script (#42747)

Alvaro Parker07cc87b288b9
diff --git a/script/install-wild b/script/install-wild
index 3f8a5a2b3ff..4c2d0348965 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