This commit is contained in:
Brian Zalewski 2023-12-09 12:44:09 +00:00
parent 1839e42af7
commit 1bbc6e476a

View file

@ -120,9 +120,9 @@ loadHomebrew() {
if ! command -v brew > /dev/null; then if ! command -v brew > /dev/null; then
if [ -f /usr/local/bin/brew ]; then if [ -f /usr/local/bin/brew ]; then
eval "$(/usr/local/bin/brew shellenv)" eval "$(/usr/local/bin/brew shellenv)"
if [ -f "${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" ]; then elif [ -f "${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" ]; then
eval "$("${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" shellenv)" eval "$("${HOMEBREW_PREFIX:-/opt/homebrew}/bin/brew" shellenv)"
if [ -d "$HOME/.linuxbrew" ]; then elif [ -d "$HOME/.linuxbrew" ]; then
eval "$("$HOME/.linuxbrew/bin/brew" shellenv)" eval "$("$HOME/.linuxbrew/bin/brew" shellenv)"
elif [ -d "/home/linuxbrew/.linuxbrew" ]; then elif [ -d "/home/linuxbrew/.linuxbrew" ]; then
eval "(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" eval "(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"