From acff0b19d6519694273f70a40dd9f251435f5fed Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 4 Oct 2017 16:17:00 -0400 Subject: [PATCH] adjusted build script --- build.sh | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/build.sh b/build.sh index 4b7bda8afd..e37bbe7498 100644 --- a/build.sh +++ b/build.sh @@ -5,18 +5,12 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" echo "" -if [ $# -gt 0 -a "$1" == "push" ] +if [ $# -gt 1 -a "$1" == "push" ] then - echo "# Pushing Web" + TAG=$2 + echo "# Pushing Web ($TAG)" echo "" - - if [ $# -gt 1 ] - then - TAG=$2 - docker push bitwarden/web:$TAG - else - docker push bitwarden/web - fi + docker push bitwarden/web:$TAG elif [ $# -gt 1 -a "$1" == "tag" ] then TAG=$2