Skip to content

Commit

Permalink
trim newline chars when setting references to the output of an execut…
Browse files Browse the repository at this point in the history
…ed command in process execution steps
  • Loading branch information
gggeek committed Jan 16, 2019
1 parent 89139f1 commit 4094e2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/Executor/ProcessExecutor.php
Expand Up @@ -114,13 +114,13 @@ protected function setReferences(Process $process, $dsl)
foreach ($dsl['references'] as $reference) {
switch ($reference['attribute']) {
case 'error_output':
$value = $process->getErrorOutput();
$value = rtrim($process->getErrorOutput(), "\r\n");
break;
case 'exit_code':
$value = $process->getExitCode();
break;
case 'output':
$value = $process->getOutput();
$value = rtrim($process->getOutput(), "\r\n");
break;
default:
throw new \InvalidArgumentException('Process executor does not support setting references for attribute ' . $reference['attribute']);
Expand Down

0 comments on commit 4094e2d

Please sign in to comment.