From 3c5a7bf6851a7e0c0ae42f3072d26aa58e65ab93 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Wed, 26 May 2021 23:46:09 +0300 Subject: [PATCH] CI: fix Bash syntax --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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