diff --git a/Scripts/Install/InstallDarwin.sh b/Scripts/Install/InstallDarwin.sh index adf921d..c4ec23a 100755 --- a/Scripts/Install/InstallDarwin.sh +++ b/Scripts/Install/InstallDarwin.sh @@ -4,7 +4,11 @@ install() { sudo xcode-select --install - /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" || exit 1 + which -s brew + + if [[ $? != 0 ]]; then + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" || exit 1 + fi xargs brew install < "${installToolsPath}/PackageListBrew.txt" || exit 1