From acf2cd32b35b065c671a28345c0ac44de269fb78 Mon Sep 17 00:00:00 2001 From: Florian Widder Date: Tue, 12 Jan 2021 14:41:17 +0100 Subject: [PATCH] Fix -p Flag --- README.md | 4 ++-- build-multi-platform.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 836670c..2c900ff 100644 --- a/README.md +++ b/README.md @@ -80,10 +80,10 @@ build-multi-platform.sh build-multi-platform.sh -t "other_tag" # Build with tag "metube" and Upload do Docker Registry -build-multi-platform.sh -p true +build-multi-platform.sh -p # Build with tag "other_tag" and Upload do Docker Registry -build-multi-platform.sh -t "other_tag" -p true +build-multi-platform.sh -t "other_tag" -p ``` ## Development notes diff --git a/build-multi-platform.sh b/build-multi-platform.sh index 7f56cc9..b1f78ad 100755 --- a/build-multi-platform.sh +++ b/build-multi-platform.sh @@ -8,14 +8,14 @@ while getopts ":hhelpf:t:p:" ARGS; do case $ARGS in h|help ) - echo -e "Usgae:\n\t-t \"Tag\"\n\t\tuse a specific Tag\n\t-p true\n\t\tPush the Image do a registry. Needs to be logged in (docker login).\n\t-h\n\t\t Show this Help Dialog" + echo -e "Usgae:\n\t-t \"Tag\"\n\t\tuse a specific Tag\n\t-p\n\t\tPush the Image do a registry. Needs to be logged in (docker login).\n\t-h\n\t\t Show this Help Dialog" exit 1 ;; t ) TAG="${OPTARG}" ;; p ) - PUSH="${OPTARG}" + PUSH="true" ;; esac done