diff --git a/setup/brew_fix_python_openssl.sh b/setup/brew_fix_python_openssl.sh index fc313182..dee9b693 100755 --- a/setup/brew_fix_python_openssl.sh +++ b/setup/brew_fix_python_openssl.sh @@ -24,9 +24,11 @@ set -euo pipefail if type -P brew &>/dev/null; then if ! python -c 'import hashlib'; then echo "Attempting to upgrade Python to fix OpenSSL linkage break" - if python -V | grep -q '^Python 2'; then + if python -V | tee /dev/stderr | grep -q '^Python 2'; then + echo "upgrading python@2" brew upgrade python@2 else + echo "upgrading python" brew upgrade python fi fi