Merge pull request #3173 from casperdcl/snap-deploy

minor comments
This commit is contained in:
Ruslan Kuprieiev
2020-01-17 01:11:49 +02:00
committed by GitHub
+2 -5
View File
@@ -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