From d652653cbed7653c31f9be02a02c01ccccb6e265 Mon Sep 17 00:00:00 2001 From: David Burilovic Date: Tue, 21 May 2019 13:29:20 +0200 Subject: [PATCH] fix parentheses when parsing multiple arguments --- plugin.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.sh b/plugin.sh index 2c18670..5e91eaa 100755 --- a/plugin.sh +++ b/plugin.sh @@ -30,11 +30,11 @@ if [[ "${PLUGIN_CACHE:-}" == "true" ]]; then CACHE="--cache=true" fi -if [[ -n "${PLUGIN_BUILD_ARGS:-}" ]]; then +if [ -n "${PLUGIN_BUILD_ARGS:-}" ]; then BUILD_ARGS=$(echo "${PLUGIN_BUILD_ARGS}" | tr ',' '\n' | while read build_arg; do echo "--build-arg=${build_arg}"; done) fi -if [[ -n "${PLUGIN_TAGS:-}" ]]; then +if [ -n "${PLUGIN_TAGS:-}" ]; then DESTINATIONS=$(echo "${PLUGIN_TAGS}" | tr ',' '\n' | while read tag; do echo "--destination=${PLUGIN_REPO}:${tag} "; done) else DESTINATIONS="--destination=${PLUGIN_REPO}:latest"