diff --git a/.travis.yml b/.travis.yml index af9ea7f8..1fb63cb8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,8 +20,8 @@ jobs: directories: - imgcache before_script: - - if [ -z "$DOCKER_USERNAME" ] - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin + - if [ -z "$DOCKER_USERNAME" ]; then + echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin; fi - docker pull ${DOCKER} # Check if there are any cached images, copy them to our "images" directory