1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-12 22:10:14 +00:00

Enhanced protection

This commit is contained in:
Tw93
2025-12-05 20:09:15 +08:00
parent dec6cb6e59
commit 5b178b62a1
4 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ clean_user_essentials() {
# Safely iterate and remove each item
while IFS= read -r -d '' item; do
safe_remove "$item" true || true
done < <(command find "$volume/.Trashes" -mindepth 1 -maxdepth 1 -print0 2> /dev/null)
done < <(command find "$volume/.Trashes" -mindepth 1 -maxdepth 1 -print0 2> /dev/null || true)
done
fi