mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 04:37:09 +00:00
[macOS] Fix for Homebrew shellenv bug to unlock PATH (#10642)
* [macOS] Fix for Homebrew shellenv bug to unlock PATH * Add Homebrew default PATH back to bashrc
This commit is contained in:
@@ -15,4 +15,7 @@ sudo chsh -s /bin/bash root
|
|||||||
if [[ $arch == "arm64" ]]; then
|
if [[ $arch == "arm64" ]]; then
|
||||||
echo "Adding Homebrew environment to bash"
|
echo "Adding Homebrew environment to bash"
|
||||||
/opt/homebrew/bin/brew shellenv >> ~/.bashrc
|
/opt/homebrew/bin/brew shellenv >> ~/.bashrc
|
||||||
|
# Workaround for the issue (#10624) with the Homebrew PATH in the bashrc
|
||||||
|
sed -i '' '/; export PATH;/d' ~/.bashrc
|
||||||
|
echo 'export PATH="/opt/homebrew/bin:/opt/homebrew/sbin:$PATH"' >> ~/.bashrc
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user