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-wildindex 3f8a5a2b3ff..4c2d0348965 100755--- a/script/install-wild+++ b/script/install-wild@@ -11,8 +11,8 @@ if [ "$(uname -s)" != "Linux" ]; thenelif [ -z "$WILD_VERSION" ]; thenecho "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 0fi