fix ddsubment https blank

This commit is contained in:
xiaomlove
2022-08-04 19:50:41 +08:00
parent 8fd5fa0df6
commit 3d7feffe1a
4 changed files with 32 additions and 15 deletions

View File

@@ -322,6 +322,10 @@ class Update extends Install
public function downAndExtractCode($url, array $includes = []): string
{
$requireCommand = 'rsync';
if (!command_exists($requireCommand)) {
throw new \RuntimeException("command: $requireCommand not exists!");
}
$arr = explode('/', $url);
$basename = last($arr);
$isZip = false;