update readme & fix update download latest code

This commit is contained in:
xiaomlove
2022-02-14 01:42:24 +08:00
parent 8b041f838a
commit 10a3f959db
6 changed files with 16 additions and 11 deletions

View File

@@ -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));