mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 17:35:36 +08:00
Fix selective artifact installation detect
This commit is contained in:
@@ -164,7 +164,14 @@ class Artifact
|
|||||||
|
|
||||||
// For selective mode, cannot reliably check extraction status
|
// For selective mode, cannot reliably check extraction status
|
||||||
if ($mode === 'selective') {
|
if ($mode === 'selective') {
|
||||||
return false;
|
// check files existence
|
||||||
|
foreach ($extract_config['files'] as $target_file) {
|
||||||
|
$target_file = FileSystem::replacePathVariable($target_file);
|
||||||
|
if (!file_exists($target_file)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// For standalone mode, check directory or file and hash
|
// For standalone mode, check directory or file and hash
|
||||||
|
|||||||
Reference in New Issue
Block a user