Fix static linux cli -a not working issue (#893)

This commit is contained in:
Marc
2025-10-08 11:37:27 +02:00
committed by GitHub
4 changed files with 35 additions and 2 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);
}