Skip to content

Commit 705f585

Browse files
committed
fix(danger-kotlin): allow to add space separated args
1 parent 7a97de8 commit 705f585

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

Lines changed: 1 addition & 1 deletion
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)