Skip to content

Commit

Permalink
Allow spaces in docker extra args
Browse files Browse the repository at this point in the history
  • Loading branch information
whoan committed Oct 15, 2023
1 parent 1f0152b commit 950f8e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,11 @@ _parse_extra_args() {
local key
local value
while read -r key; do
for value in $(jq --raw-output "[.\"$key\"] | flatten[]" <<<"${INPUT_BUILD_EXTRA_ARGS}"); do
while read -r value; do
extra_args+=("$key")
extra_args+=("${value//\\n/
}")
done
done < <(jq --raw-output "[.\"$key\"] | flatten[]" <<<"${INPUT_BUILD_EXTRA_ARGS}")
done < <(jq --raw-output "keys[]" <<<"${INPUT_BUILD_EXTRA_ARGS}")
INPUT_BUILD_EXTRA_ARGS=""
}
Expand Down

0 comments on commit 950f8e2

Please sign in to comment.