Skip to content

Commit

Permalink
shift the array if the first argument is empty in case \ is used
Browse files Browse the repository at this point in the history
fixes #59
  • Loading branch information
rnagy committed Nov 10, 2018
1 parent 27c5baf commit ea96374
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parser.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ exports.parser = (dockerfile) ->
if cont
# already on a continuation, just append to arguments
rule[0].arguments = rule[0].arguments.concat self.getArguments(line)
if not utils.notEmpty(rule[0].arguments[0])
rule[0].arguments.shift()
else
cont = true
rule.push raw: line, line: lineno, instruction: self.getInstruction(line), arguments: self.getArguments(line)
Expand Down

0 comments on commit ea96374

Please sign in to comment.