fix quotes

main
Andrew Coleman 2022-08-30 11:58:38 -04:00
parent 135f2e10fe
commit ce0fffb924
1 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,11 @@ trigger-builder-nixpacks-builder-build() {
for flag in $NIXPACKS_FLAGS ; do for flag in $NIXPACKS_FLAGS ; do
local value="$(fn-plugin-property-get "builder-nixpacks" "$APP" "$flag")" local value="$(fn-plugin-property-get "builder-nixpacks" "$APP" "$flag")"
if [[ -n "$value" ]] ; then if [[ -n "$value" ]] ; then
NIXPACKS_ARGS="${NIXPACKS_ARGS}--${flag}=${value// /\\ } " if [[ "$value" =~ " " ]] ; then
NIXPACKS_ARGS="${NIXPACKS_ARGS}--${flag}='${value}' "
else
NIXPACKS_ARGS="${NIXPACKS_ARGS}--${flag}=${value} "
fi
fi fi
done done