mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-16 05:50:55 +08:00
update readme & fix update download latest code
This commit is contained in:
@@ -556,8 +556,9 @@ class Install
|
||||
|
||||
public function executeCommand($command)
|
||||
{
|
||||
$this->doLog("command: $command");
|
||||
$result = exec($command, $output, $result_code);
|
||||
$this->doLog(sprintf('command: %s, result_code: %s, result: %s', $command, $result_code, $result));
|
||||
$this->doLog(sprintf('result_code: %s, result: %s', $result_code, $result));
|
||||
$this->doLog("output: " . json_encode($output));
|
||||
if ($result_code != 0) {
|
||||
throw new \RuntimeException(json_encode($output));
|
||||
|
||||
Reference in New Issue
Block a user