mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
Fix selective artifact installation detect
This commit is contained in:
parent
7041e060f2
commit
6fdbf629dc
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user