travis: fix condition when to update repository

This commit is contained in:
Jörg Thalheim 2018-07-15 10:10:36 -04:00
parent 0e09e7b419
commit 00124ab1c8

View file

@ -26,7 +26,7 @@ fi
nix-build
# Pull requests and commits to other branches shouldn't try to deploy, just build to verify
if [[ "$TRAVIS_EVENT_TYPE" != "cron" ]] || [[ "$TRAVIS_EVENT_TYPE" != "api" ]]; then
if [[ "$TRAVIS_EVENT_TYPE" != "cron" ]] && [[ "$TRAVIS_EVENT_TYPE" != "api" ]]; then
echo "Skipping deploy; just doing a build."
exit 0
fi