diff --git a/bin/travis-build.sh b/bin/travis-build.sh index effea7d..8dcb3ec 100755 --- a/bin/travis-build.sh +++ b/bin/travis-build.sh @@ -2,7 +2,7 @@ # show macOS version sw_vers brew update -if ! brew info python@2 | grep -q 'Not installed'; then +if ls -d /usr/local/Frameworks/Python.framework/Headers > /dev/null 2>&1; then brew unlink python@2 fi if [[ $TRAVIS_EVENT_TYPE = cron ]]; then