Skip to content

Commit 4c5972b

Browse files
authored
Merge pull request #247 from Vacxe/fix-space-separated-args
2 parents 7a97de8 + 705f585 commit 4c5972b

File tree

1 file changed

+1
-1
lines changed
  • danger-kotlin/src/runnerMain/kotlin

1 file changed

+1
-1
lines changed

danger-kotlin/src/runnerMain/kotlin/Main.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fun main(args: Array<String>) {
2525
else -> {
2626
when (val command = Command.forArgument(args.first())) {
2727
Command.CI, Command.LOCAL, Command.PR -> {
28-
DangerJS.process(command, PROCESS_DANGER_KOTLIN, args.drop(1))
28+
DangerJS.process(command, PROCESS_DANGER_KOTLIN, args.drop(1).map { if(it.contains(" ")) "'$it'" else it })
2929
}
3030
Command.RUNNER -> DangerKotlin.run()
3131
else -> Log.error("Invalid command received: $command")

0 commit comments

Comments
 (0)