Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ then
abort 'Bash must not run in POSIX mode. Please unset POSIXLY_CORRECT and try again.'
fi

# Check for file that prevents Homebrew installation
if [[ -f "/etc/homebrew/brew.no_install" ]]
then
BREW_NO_INSTALL="$(cat "/etc/homebrew/brew.no_install" 2>/dev/null)"
if [[ -n "${BREW_NO_INSTALL}" ]]
then
abort "Homebrew cannot be installed because ${BREW_NO_INSTALL}."
else
abort "Homebrew cannot be installed because /etc/homebrew/brew.no_install exists!"
fi
fi

# string formatters
if [[ -t 1 ]]
then
Expand Down