From 53e98bd5fe35ce616c208fe22a44860ffd76c284 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 8 Nov 2023 12:12:16 +0800 Subject: [PATCH] Update macos.sh --- scripts/install/macos.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install/macos.sh b/scripts/install/macos.sh index 24f34743b..7913f35d0 100755 --- a/scripts/install/macos.sh +++ b/scripts/install/macos.sh @@ -15,7 +15,8 @@ mkdir -p $DEV/backup/database mkdir -p $DEV/backup/site # install brew -if [ ! -f /usr/local/bin/brew ];then +which brew +if [ "$?" != "0" ];then /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install python@2 brew install mysql