Skip to content

Commit

Permalink
update symfony process
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Feb 19, 2020
1 parent 09c2e8e commit bfd7680
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/BuildProcess/ExecuteBuildCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __invoke()
foreach (Manifest::buildCommands($this->environment) as $command) {
Helpers::step('<comment>Running Command</comment>: '.$command);

$process = new Process($command, $this->appPath, null, null, null);
$process = Process::fromShellCommandline($command, $this->appPath, null, null, null);

$process->mustRun(function ($type, $line) {
Helpers::write($line);
Expand Down
4 changes: 2 additions & 2 deletions src/Clipboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public static function deployment(array $deployment)
public static function put($string)
{
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
(new Process('echo '.$string.' | clip'))->run();
Process::fromShellCommandline('echo '.$string.' | clip')->run();
} else {
(new Process('echo "'.$string.'" | pbcopy'))->run();
Process::fromShellCommandline('echo "'.$string.'" | pbcopy')->run();
}
}
}
4 changes: 3 additions & 1 deletion src/Commands/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ protected function execute(InputInterface $input, OutputInterface $output)

$this->configureOutputStyles($output);

return Helpers::app()->call([$this, 'handle']);
Helpers::app()->call([$this, 'handle']);

return 0;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Git.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function isClean()
*/
protected static function command($command)
{
$process = new Process($command, Path::current());
$process = Process::fromShellCommandline($command, Path::current());

$process->run();

Expand Down

0 comments on commit bfd7680

Please sign in to comment.