Skip to content

Commit

Permalink
Use Process::fromShellCommandline when constructing a Process object …
Browse files Browse the repository at this point in the history
…from a command string. (#950)
  • Loading branch information
greg-1-anderson committed May 27, 2020
1 parent c524fa2 commit e7ce57d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Common/ExecCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ protected function getCommandDescription()
protected function executeCommand($command)
{
// TODO: Symfony 4 requires that we supply the working directory.
$result_data = $this->execute(new Process($command, getcwd()));
$result_data = $this->execute(Process::fromShellCommandline($command, getcwd()));
return new Result(
$this,
$result_data->getExitCode(),
Expand Down
2 changes: 1 addition & 1 deletion src/Task/Base/ParallelExec.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function printed($isPrinted = true)
public function process($command)
{
// TODO: Symfony 4 requires that we supply the working directory.
$this->processes[] = new Process($this->receiveCommand($command), getcwd());
$this->processes[] = Process::fromShellCommandline($this->receiveCommand($command), getcwd());
return $this;
}

Expand Down

0 comments on commit e7ce57d

Please sign in to comment.