Skip to content

Commit

Permalink
Add workarounds for brew on old OSX images (dotnet#45802)
Browse files Browse the repository at this point in the history
* Add workarounds for brew on old OSX images

* Don't remove openssl directories
  • Loading branch information
safern authored Dec 9, 2020
1 parent e516cf3 commit 02ec1e9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions eng/install-native-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ if [ "$1" = "Linux" ]; then
fi
elif [ "$1" = "OSX" ] || [ "$1" = "tvOS" ] || [ "$1" = "iOS" ]; then
engdir=$(dirname "${BASH_SOURCE[0]}")

if [ "$3" = "azDO" ]; then
# workaround for old osx images on hosted agents
# piped in case we get an agent without these values installed
brew uninstall [email protected] 2>&1 | true
fi

brew update --preinstall
brew bundle --no-upgrade --no-lock --file "${engdir}/Brewfile"
if [ "$?" != "0" ]; then
Expand Down

0 comments on commit 02ec1e9

Please sign in to comment.