From bacbae4301c8f4f3949625b45a61fcb927523d6d Mon Sep 17 00:00:00 2001 From: DominikDeak Date: Tue, 24 Jan 2023 15:26:32 +1100 Subject: [PATCH] Updated installer script --- Scripts/Install/InstallDarwin.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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