mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 13:47:52 +00:00
Allow newline characters in build/deploy --buildArg values
Change-type: patch Signed-off-by: Paulo Castro <paulo@balena.io>
This commit is contained in:
parent
d21b84956c
commit
e145540132
@ -130,7 +130,8 @@ parseBuildArgs = (args) ->
|
|||||||
args = [ args ]
|
args = [ args ]
|
||||||
buildArgs = {}
|
buildArgs = {}
|
||||||
args.forEach (arg) ->
|
args.forEach (arg) ->
|
||||||
pair = /^([^\s]+?)=(.*)$/.exec(arg)
|
# note: [^] matches any character, including line breaks
|
||||||
|
pair = /^([^\s]+?)=([^]*)$/.exec(arg)
|
||||||
if pair?
|
if pair?
|
||||||
buildArgs[pair[1]] = pair[2] ? ''
|
buildArgs[pair[1]] = pair[2] ? ''
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user