Fix build arg quoting

This commit is contained in:
Maximilian Teegen 2024-02-01 23:14:34 +01:00 committed by nyyu
parent 973038b5eb
commit f9604bffb1

View file

@ -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:-}"