Skip to content

Commit

Permalink
install.sh is not upgrading OpenSSL on MacOS (#11003)
Browse files Browse the repository at this point in the history
* MacOS isn't updating OpenSSL in install.sh

* Exit if no brew on MacOS

* Code the if tree like a pro instead.

Co-authored-by: Kyle Altendorf <[email protected]>

Co-authored-by: Kyle Altendorf <[email protected]>
  • Loading branch information
hoffmang9 and altendky authored Apr 2, 2022
1 parent e3e814b commit 131bd4e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,13 @@ if [ "$(uname)" = "Linux" ]; then
sudo yum install -y python39 openssl
fi
fi
elif [ "$(uname)" = "Darwin" ] && ! type brew >/dev/null 2>&1; then
echo "Installation currently requires brew on MacOS - https://brew.sh/"
elif [ "$(uname)" = "Darwin" ]; then
echo "Installing on macOS."
if ! type brew >/dev/null 2>&1; then
echo "Installation currently requires brew on macOS - https://brew.sh/"
exit 1
fi
echo "Installing OpenSSL"
brew install openssl
elif [ "$(uname)" = "OpenBSD" ]; then
export MAKE=${MAKE:-gmake}
Expand Down

0 comments on commit 131bd4e

Please sign in to comment.