From ec2f8aea0da803dc31f2419f2ceb4827a863dc38 Mon Sep 17 00:00:00 2001 From: dcarrillo Date: Tue, 24 Dec 2019 17:19:08 +0100 Subject: [PATCH] Remove duplicated variable declaration --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index da4eb4d..ed29c0e 100755 --- a/build.sh +++ b/build.sh @@ -30,5 +30,5 @@ fi if [ x$LATEST = "xtrue" ]; then docker tag "$DOCKER_IMAGE":"$NGINX_VERSION" "$DOCKER_IMAGE":latest - docker push "$DOCKER_IMAGE":latest + [ x$PUSH = "xtrue" ] && docker push "$DOCKER_IMAGE":latest fi