diff --git a/modules/04-install-brew.sh b/modules/04-install-brew.sh index 5ecaf4a..a14e96e 100755 --- a/modules/04-install-brew.sh +++ b/modules/04-install-brew.sh @@ -208,7 +208,7 @@ function createBrewPeriodicScript() { function installHomebrewCore() { export NONINTERACTIVE=1 - [ ! -d $(getHomebrewRepositoryPath) ] || return + [ ! -d $(getHomebrewRepositoryPath) ] || return sudo --preserve-env=NONINTERACTIVE -u "${homebrew_username}" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" [ -d $(getHomebrewRepositoryPath) ] }