From f9604bffb162eda5fdccf3a0f9151188151e35d0 Mon Sep 17 00:00:00 2001 From: Maximilian Teegen Date: Thu, 1 Feb 2024 23:14:34 +0100 Subject: [PATCH] Fix build arg quoting --- plugin.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.sh b/plugin.sh index 1fe41b1..0fdc1f7 100755 --- a/plugin.sh +++ b/plugin.sh @@ -72,7 +72,7 @@ if [ -n "${PLUGIN_CACHE_TTL:-}" ]; then fi if [ -n "${PLUGIN_BUILD_ARGS:-}" ]; then - BUILD_ARGS=$(echo "${PLUGIN_BUILD_ARGS}" | tr ',' '\n' | while read -r build_arg; do echo "--build-arg ${build_arg}"; done) + BUILD_ARGS=$(echo "${PLUGIN_BUILD_ARGS}" | tr ',' '\n' | while read -r build_arg; do echo "--build-arg \"${build_arg}\""; done) fi BUILD_ARGS_FROM_ENV="" @@ -146,6 +146,6 @@ fi "${CACHE_TTL:-}" \ "${CACHE_REPO:-}" \ "${TARGET:-}" \ - "${BUILD_ARGS:-}" \ + ${BUILD_ARGS:-} \ ${BUILD_ARGS_FROM_ENV:-} \ "${MIRROR:-}"