Skip to content

Commit

Permalink
Fixes #1830 - reset real command on every iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
mrook committed Nov 18, 2024
1 parent 18a4823 commit 1c51e6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Phing/Task/System/ExecTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,8 @@ protected function prepare()
*/
protected function buildCommand()
{
$this->realCommand = '';

if (null !== $this->error) {
$this->realCommand .= ' 2> ' . escapeshellarg($this->error->getPath());
$this->log(
Expand Down

0 comments on commit 1c51e6e

Please sign in to comment.