mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-23 15:32:22 +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 ]
|
||||
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…
Reference in New Issue
Block a user