From 5a27d2a63c935fada0d5cf09ba704e78cc5b582f Mon Sep 17 00:00:00 2001 From: delphinus Date: Wed, 12 Feb 2020 16:23:22 +0900 Subject: [PATCH] Manage the case when python@2 is unavailable This formula was deleted. https://github.com/Homebrew/homebrew-core/pull/49796 --- bin/travis-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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