mirror of
https://github.com/tw93/Mole.git
synced 2026-02-09 09:39:19 +00:00
Enhanced protection
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user