Skip to content

Commit

Permalink
Added comment and removed another.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinjana committed Oct 19, 2020
1 parent 0392559 commit 5d0e622
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ class LocalExecutionHelper {
* @return
*/
static ExecutionResult executeCommandWithExtendedResult(String command, OutputStream outputStream = null) {
//Process process = Roddy.getLocalCommandSet().getShellExecuteCommand(command).execute();
Process process = ["bash", "-c", command].execute();

// TODO Put to a custom class which can handle things for Windows as well.
Expand All @@ -82,6 +81,7 @@ class LocalExecutionHelper {
logger.postRareInfo("Executing the command ${command} locally.")

// TODO This should not return the stderr and stdout intermingled (in contrast to SSHExecutionService).
// WARNING: There are no guarantees that stderr is written after stderr or otherwise. Output may be unpredictable!
if (outputStream)
process.waitForProcessOutput(outputStream, outputStream)
else {
Expand Down

0 comments on commit 5d0e622

Please sign in to comment.