Fix selective artifact installation detect

This commit is contained in:
crazywhalecc 2026-02-03 14:00:21 +08:00
parent 7041e060f2
commit 6fdbf629dc
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -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