mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-21 09:51:58 +00:00
Merge pull request #1269 from balena-io/newline-build-arg
Allow newline characters in build/deploy --buildArg values
This commit is contained in:
commit
f2af7b2588
@ -130,7 +130,8 @@ parseBuildArgs = (args) ->
|
||||
args = [ args ]
|
||||
buildArgs = {}
|
||||
args.forEach (arg) ->
|
||||
pair = /^([^\s]+?)=(.*)$/.exec(arg)
|
||||
# note: [^] matches any character, including line breaks
|
||||
pair = /^([^\s]+?)=([^]*)$/.exec(arg)
|
||||
if pair?
|
||||
buildArgs[pair[1]] = pair[2] ? ''
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user