diff --git a/images/macos/scripts/build/configure-shell.sh b/images/macos/scripts/build/configure-shell.sh index ec12cbeb7..92b23409e 100644 --- a/images/macos/scripts/build/configure-shell.sh +++ b/images/macos/scripts/build/configure-shell.sh @@ -15,4 +15,7 @@ sudo chsh -s /bin/bash root if [[ $arch == "arm64" ]]; then echo "Adding Homebrew environment to bash" /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