Skip to content

Commit

Permalink
fix(darwin_arm64): ensure homebrew gets on the path
Browse files Browse the repository at this point in the history
  • Loading branch information
shakefu committed Nov 28, 2023
1 parent f3dea1f commit b2a4234
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install/darwin_arm64/02-brew
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
$RUN sudo --non-interactive --validate || $RUN sudo --validate
$RUN curl -o "$TMP" -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh
$RUN /bin/bash "$TMP"

# Ensure brew is in PATH in dash shell
if ! $RUN grep 'brew' /etc/profile; then
$RUN echo "export PATH=\"$($RUN brew --prefix)/bin:\$PATH\"" | $RUN sudo tee -a "/etc/profile"
fi

0 comments on commit b2a4234

Please sign in to comment.