mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
fix: error when source doesn't exist
This commit is contained in:
parent
f4327c8c81
commit
4c46f6a762
@ -253,6 +253,12 @@ class Downloader
|
|||||||
$source = Config::getSource($name);
|
$source = Config::getSource($name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($source === null) {
|
||||||
|
logger()->warning('Source {name} unknown. Skipping.', ['name' => $name]);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// load lock file
|
// load lock file
|
||||||
if (!file_exists(DOWNLOAD_PATH . '/.lock.json')) {
|
if (!file_exists(DOWNLOAD_PATH . '/.lock.json')) {
|
||||||
$lock = [];
|
$lock = [];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user