diff --git a/share/spack/qa/run-docker-tests b/share/spack/qa/run-docker-tests index 398889be26f..8613c7e728e 100755 --- a/share/spack/qa/run-docker-tests +++ b/share/spack/qa/run-docker-tests @@ -38,9 +38,7 @@ for config in share/spack/docker/config/* ; do done if [ "$TEST_SUITE" '=' "docker" -a \ - "$TRAVIS_EVENT_TYPE" != "pull_request" -a \ - ensure_docker_login ] ; then - + "$TRAVIS_EVENT_TYPE" != "pull_request" ] && ensure_docker_login ; then for config in share/spack/docker/config/* ; do source "$config" ./share/spack/docker/push-image.sh