1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-09 09:39:19 +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

@@ -52,7 +52,7 @@ clean_ds_store_tree() {
if [[ $file_count -ge 500 ]]; then
break
fi
done < <("${find_cmd[@]}" 2> /dev/null)
done < <("${find_cmd[@]}" 2> /dev/null || true)
if [[ "$spinner_active" == "true" ]]; then
stop_inline_spinner

View File

@@ -94,7 +94,7 @@ clean_service_worker_cache() {
fi
cleaned_size=$((cleaned_size + size))
fi
done < <(command find "$cache_path" -type d -depth 2 2> /dev/null)
done < <(command find "$cache_path" -type d -depth 2 2> /dev/null || true)
if [[ $cleaned_size -gt 0 ]]; then
# Temporarily stop spinner for clean output

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