From 535de2bb6ed79a7e5519bf63dccdf953400f7b7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 24 Nov 2022 17:54:44 +0100 Subject: [PATCH] Remove bashisms from build-image.sh MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- build-image.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build-image.sh b/build-image.sh index 15b2d72..b065201 100755 --- a/build-image.sh +++ b/build-image.sh @@ -43,9 +43,9 @@ while getopts ":b:p:ch" option; do case "${option}" in b) name=${OPTARG} - if [[ ${name} == "all" ]]; then + if [ ${name} = "all" ]; then build_all - elif [[ -z "${images##*$name*}" ]]; then + elif [ -z "${images##*$name*}" ]; then make NAME=${name} else echo "Error: Unknown image name as option argument '${OPTARG}'" >&2; @@ -54,9 +54,9 @@ while getopts ":b:p:ch" option; do ;; p) repository=${OPTARG} - if [[ ${repository} == "all" ]]; then + if [ ${repository} = "all" ]; then push_all - elif [[ -z "${repositories##*$repository*}" ]]; then + elif [ -z "${repositories##*$repository*}" ]; then make docker-push-registry NAME=${repository} else echo "Error: Unknown repository name as option argument '${OPTARG}'" >&2; -- 2.34.1