From e3111540de138de69e38bf0adb5eed4d18b6929c Mon Sep 17 00:00:00 2001 From: commitay Date: Tue, 26 Sep 2017 11:33:35 +1000 Subject: [PATCH] script.sh: update to match main repo --- ci/travis/script.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/travis/script.sh b/ci/travis/script.sh index d893de372..23b1b5735 100755 --- a/ci/travis/script.sh +++ b/ci/travis/script.sh @@ -21,6 +21,11 @@ if [[ ${#casks_wrong_dir[@]} -gt 0 ]]; then elif [[ ${#modified_casks[@]} -gt 0 ]]; then run brew cask _audit_modified_casks "${TRAVIS_COMMIT_RANGE}" run brew cask style "${modified_casks[@]}" + if [[ ${#modified_casks[@]} -le 10 ]]; then + run brew cask install "${modified_casks[@]}" + else + ohai 'More than 10 casks modified, skipping install' + fi else ohai 'No casks modified, skipping' fi