Skip to content

Commit

Permalink
🐛 Update Homebrew path during setup scripts that was missing during s…
Browse files Browse the repository at this point in the history
…ubsequent steps

The method for setting up the Homebrew path on macOS has been changed. Instead of directly modifying the PATH variable, the 'brew shellenv' command is now used. This is a safer and more flexible method as it automatically sets the environment variables needed for Homebrew. This change provides better compatibility and reduces the risk of issues with different system configurations.
  • Loading branch information
wingy3181 committed Dec 3, 2023
1 parent bb88605 commit 375fcc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/os/installs/macos/homebrew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ add_to_path() {
print_error "Homebrew is only supported on Intel and ARM processors!"
fi

PATH="$prefix/bin:$PATH"
#PATH="$prefix/bin:$PATH"
eval "$($prefix/bin/brew shellenv)"

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Expand Down

0 comments on commit 375fcc4

Please sign in to comment.