Skip to content

Commit

Permalink
Merge pull request iterative#3173 from casperdcl/snap-deploy
Browse files Browse the repository at this point in the history
minor comments
efiop authored Jan 16, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 74bbc3b + d34aa44 commit 422ff57
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/ci/deploy_condition.sh
Original file line number Diff line number Diff line change
@@ -2,16 +2,13 @@

set -e

if [[ $TRAVIS_OS_NAME == "osx" && $TRAVIS_OSX_IMAGE != "xcode8.3" ]]; then
exit 1
fi

if [[ $TRAVIS_EVENT_TYPE = pull_request || $TRAVIS_EVENT_TPYE = cron ]]; then
exit 2
fi

# ensure at least one positional arg exists
# positional args are assumed to be file glob patterns to deploy
if [[ ${#} -ge 1 ]]; then
# ensure at least one file exists
[[ -n "$(ls $@ 2>/dev/null)" ]] || exit 3
fi

0 comments on commit 422ff57

Please sign in to comment.