From 1bbc6e476ade17c2cbcc99f6851c8326401bb246 Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Sat, 9 Dec 2023 12:44:09 +0000 Subject: [PATCH] Latest --- .../universal/run_before_01-system-homebrew.sh.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/.chezmoiscripts/universal/run_before_01-system-homebrew.sh.tmpl b/home/.chezmoiscripts/universal/run_before_01-system-homebrew.sh.tmpl index fee46d70..6592abfd 100644 --- a/home/.chezmoiscripts/universal/run_before_01-system-homebrew.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_before_01-system-homebrew.sh.tmpl @@ -120,9 +120,9 @@ loadHomebrew() { if ! command -v brew > /dev/null; then if [ -f /usr/local/bin/brew ]; then 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)" - if [ -d "$HOME/.linuxbrew" ]; then + elif [ -d "$HOME/.linuxbrew" ]; then eval "$("$HOME/.linuxbrew/bin/brew" shellenv)" elif [ -d "/home/linuxbrew/.linuxbrew" ]; then eval "(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"