Debug for command executor

This commit is contained in:
Marcin Grzejszczak
2019-11-18 15:08:30 +01:00
parent 57d3259437
commit 2e6c3fc7cf

View File

@@ -293,7 +293,7 @@ class ProcessExecutor implements ReleaserPropertiesAware {
String lastArg = String.join(" ", commands);
String[] commandsWithBash = commandToExecute(lastArg);
log.info(
"Will run the command {}", commandsWithBash);
"Will run the command [{}]", Arrays.toString(commandsWithBash));
return new ProcessBuilder(commandsWithBash).directory(new File(workingDir))
.inheritIO();
}