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