mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 14:25:41 +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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user