Update ProcessService.php

This commit is contained in:
Anyon 2019-11-28 11:17:42 +08:00
parent fdd2ca528b
commit 4aa4dd13a0

View File

@ -55,7 +55,7 @@ class ProcessService extends Service
if ($this->iswin()) { if ($this->iswin()) {
$this->exec(__DIR__ . "/bin/console.exe {$command}"); $this->exec(__DIR__ . "/bin/console.exe {$command}");
} else { } else {
$this->exec("{$command} &"); $this->exec("{$command} 2>&1");
} }
return $this; return $this;
} }