Skip to content

Commit

Permalink
Merge pull request #247 from Vacxe/fix-space-separated-args
Browse files Browse the repository at this point in the history
  • Loading branch information
f-meloni authored May 26, 2023
2 parents 7a97de8 + 705f585 commit 4c5972b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion danger-kotlin/src/runnerMain/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fun main(args: Array<String>) {
else -> {
when (val command = Command.forArgument(args.first())) {
Command.CI, Command.LOCAL, Command.PR -> {
DangerJS.process(command, PROCESS_DANGER_KOTLIN, args.drop(1))
DangerJS.process(command, PROCESS_DANGER_KOTLIN, args.drop(1).map { if(it.contains(" ")) "'$it'" else it })
}
Command.RUNNER -> DangerKotlin.run()
else -> Log.error("Invalid command received: $command")
Expand Down

0 comments on commit 4c5972b

Please sign in to comment.