like ZFS, where the tests also match (some) directories with contents,
which fail to delete and are quite noisy.
Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
shift 2 # everything else is args to suspicious-source
# Remove tiny files 4 bytes or less
-find . -size -4c -delete
+find . -size -4c -type f -delete
# Remove non-suspicious files, warning on patterns that match nothing
echo "Excluding (i.e. removing) whitelisted files..."
grep -v '^#' "$whitelist" | xargs -I% sh -c 'rm -r ./% || true'