From 81bbf5178edb393d19a288b5f33f300f4bffb225 Mon Sep 17 00:00:00 2001 From: Evangelos Lamprou Date: Tue, 25 Aug 2026 10:57:53 -0400 Subject: [PATCH] Fix Homebrew check and quote OMZ path --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 08b7ed9..bab8e3e 100755 --- a/install.sh +++ b/install.sh @@ -18,7 +18,7 @@ sudo xcode-select --install || true # Install homebrew export HOMEBREW_NO_ENV_HINTS=true -if test ! $(which brew) +if ! command -v brew >/dev/null 2>&1 then echo "$PREFIX Installing brew..." /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" @@ -46,12 +46,12 @@ done # Install oh-my-zsh OMZ=~/.oh-my-zsh -if test ! -d $OMZ +if test ! -d "$OMZ" then echo "> Installing oh my zsh..." curl -L http://install.ohmyz.sh | sh fi -mkdir -p $OMZ/completions +mkdir -p "$OMZ/completions" echo "$PREFIX Install global python packages..."