diff --git a/install.sh b/install.sh index 5cb1c1b..d392ce1 100644 --- a/install.sh +++ b/install.sh @@ -41,7 +41,7 @@ done function install_macos(){ - if [ ! command -v brew &> /dev/null ]; then + if [ -z "$(command -v brew)" ]; then NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" if [[ uname -m == "x86_64" ]]; then echo "export PATH=/usr/local/bin:$PATH" >> ~/.bash_profile && source ~/.bash_profile