File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,16 @@ fmt_header "Package Manager"
88
99case " $OS " in
1010 macos)
11+ # Activate Homebrew for this session if it exists but isn't on PATH yet.
12+ # This covers re-runs in the same terminal before the shell RC is sourced.
13+ if ! cmd_exists brew; then
14+ if [ -f /opt/homebrew/bin/brew ]; then
15+ eval " $( /opt/homebrew/bin/brew shellenv) "
16+ elif [ -f /usr/local/bin/brew ]; then
17+ eval " $( /usr/local/bin/brew shellenv) "
18+ fi
19+ fi
20+
1121 if cmd_exists brew; then
1222 fmt_ok " Homebrew already installed"
1323 else
Original file line number Diff line number Diff line change @@ -128,6 +128,9 @@ source "$SCRIPT_DIR/lib/packages_setup.sh"
128128# shellcheck source=lib/git_setup.sh
129129source " $SCRIPT_DIR /lib/git_setup.sh"
130130
131+ # shellcheck source=lib/build_setup.sh
132+ source " $SCRIPT_DIR /lib/build_setup.sh"
133+
131134# shellcheck source=lib/mise_setup.sh
132135source " $SCRIPT_DIR /lib/mise_setup.sh"
133136
@@ -137,9 +140,6 @@ source "$SCRIPT_DIR/lib/1password_setup.sh"
137140# shellcheck source=lib/circleci_setup.sh
138141source " $SCRIPT_DIR /lib/circleci_setup.sh"
139142
140- # shellcheck source=lib/build_setup.sh
141- source " $SCRIPT_DIR /lib/build_setup.sh"
142-
143143# shellcheck source=lib/docker_setup.sh
144144source " $SCRIPT_DIR /lib/docker_setup.sh"
145145
You can’t perform that action at this time.
0 commit comments