Fix static linux cli -a not working issue

This commit is contained in:
crazywhalecc
2025-09-07 14:10:28 +08:00
parent 4bc30b0b6f
commit bd815d4ea2
3 changed files with 34 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ trait ncurses
->make();
$final = FileSystem::scanDirFiles(BUILD_BIN_PATH, relative: true);
// Remove the new files
$new_files = array_diff($final, $filelist);
$new_files = array_diff($final, $filelist ?: []);
foreach ($new_files as $file) {
@unlink(BUILD_BIN_PATH . '/' . $file);
}