Merge pull request #2359 from dscho/homebrew-perforce

Work around that pesky Homebrew `perforce` problem
This commit is contained in:
Johannes Schindelin
2019-10-17 14:12:43 +02:00
committed by GitHub

View File

@@ -40,7 +40,11 @@ osx-clang|osx-gcc)
test -z "$BREW_INSTALL_PACKAGES" ||
brew install $BREW_INSTALL_PACKAGES
brew link --force gettext
brew cask install perforce ||
brew cask install perforce || {
# Update the definitions and try again
git -C "$(brew --repository)"/Library/Taps/homebrew/homebrew-cask pull &&
brew cask install perforce
} ||
brew install caskroom/cask/perforce
case "$jobname" in
osx-gcc)