Skip to content

Commit

Permalink
Fix Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
talarian1 committed Sep 18, 2023
1 parent d3fc5e2 commit 2af4542
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,17 @@ private static Process runProcess(File execDir, List<String> args, List<String>
if (credentials != null) {
args.addAll(credentials);
}
if (!SystemUtils.IS_OS_WINDOWS) {
String strArgs = join(" ", args);
args = new ArrayList<String>() {{
add("/bin/sh");
add("-c");
add(strArgs);
}};
}
logCommand(logger, args, credentials);
ProcessBuilder processBuilder = new ProcessBuilder(args)
.directory(execDir)
.redirectErrorStream(true);
.directory(execDir);
processBuilder.environment().putAll(env);
return processBuilder.start();
}
Expand Down

0 comments on commit 2af4542

Please sign in to comment.