mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 14:25:41 +08:00
fix download cache problem
This commit is contained in:
@@ -229,7 +229,7 @@ class Downloader
|
|||||||
public static function fetchSource(string $name, array $source): void
|
public static function fetchSource(string $name, array $source): void
|
||||||
{
|
{
|
||||||
// 避免重复 fetch
|
// 避免重复 fetch
|
||||||
if (!isset($source['path']) && !is_dir(FileSystem::convertPath(DOWNLOAD_PATH . "/{$name}")) || isset($source['path']) && is_dir(FileSystem::convertPath(SOURCE_PATH . "/{$source['path']}"))) {
|
if (!isset($source['path']) && is_dir(FileSystem::convertPath(DOWNLOAD_PATH . "/{$name}")) || isset($source['path']) && is_dir(FileSystem::convertPath(SOURCE_PATH . "/{$source['path']}"))) {
|
||||||
logger()->notice("{$name} source already extracted");
|
logger()->notice("{$name} source already extracted");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user