mirror of
https://github.com/tw93/Mole.git
synced 2026-02-16 17:00:17 +00:00
Enhanced protection
This commit is contained in:
@@ -52,7 +52,7 @@ clean_ds_store_tree() {
|
|||||||
if [[ $file_count -ge 500 ]]; then
|
if [[ $file_count -ge 500 ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done < <("${find_cmd[@]}" 2> /dev/null)
|
done < <("${find_cmd[@]}" 2> /dev/null || true)
|
||||||
|
|
||||||
if [[ "$spinner_active" == "true" ]]; then
|
if [[ "$spinner_active" == "true" ]]; then
|
||||||
stop_inline_spinner
|
stop_inline_spinner
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ clean_service_worker_cache() {
|
|||||||
fi
|
fi
|
||||||
cleaned_size=$((cleaned_size + size))
|
cleaned_size=$((cleaned_size + size))
|
||||||
fi
|
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
|
if [[ $cleaned_size -gt 0 ]]; then
|
||||||
# Temporarily stop spinner for clean output
|
# Temporarily stop spinner for clean output
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ clean_user_essentials() {
|
|||||||
# Safely iterate and remove each item
|
# Safely iterate and remove each item
|
||||||
while IFS= read -r -d '' item; do
|
while IFS= read -r -d '' item; do
|
||||||
safe_remove "$item" true || true
|
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
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
2
mole
2
mole
@@ -22,7 +22,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|||||||
source "$SCRIPT_DIR/lib/core/common.sh"
|
source "$SCRIPT_DIR/lib/core/common.sh"
|
||||||
|
|
||||||
# Version info
|
# Version info
|
||||||
VERSION="1.11.26"
|
VERSION="1.11.27"
|
||||||
MOLE_TAGLINE="can dig deep to clean your Mac."
|
MOLE_TAGLINE="can dig deep to clean your Mac."
|
||||||
|
|
||||||
# Check if Touch ID is already configured
|
# Check if Touch ID is already configured
|
||||||
|
|||||||
Reference in New Issue
Block a user