Exit on no files

main
idanoo 4 months ago
parent 1c87cf88d3
commit b3c239ad18
Signed by: idanoo
GPG Key ID: 387387CDBC02F132

@ -123,6 +123,7 @@ foreach ($existingFiles as $existingFile) {
if (empty($filesToDelete)) {
echo 'No files to remove \o/' . PHP_EOL;
exit(0);
}
echo count($filesToDelete) . ' files to delete!' . PHP_EOL;

Loading…
Cancel
Save