From c1784f7aa45d4551e278b98c39f649c8fe3b010b Mon Sep 17 00:00:00 2001 From: Tw93 Date: Thu, 18 Dec 2025 17:38:37 +0800 Subject: [PATCH] refactor: improve clean item removal with safe_remove --- lib/clean/project.sh | 2 +- mole | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/clean/project.sh b/lib/clean/project.sh index d2df6a2..eec288f 100644 --- a/lib/clean/project.sh +++ b/lib/clean/project.sh @@ -612,7 +612,7 @@ clean_project_artifacts() { # Clean the item if [[ -e "$item_path" ]]; then - rm -rf "$item_path" 2> /dev/null || true + safe_remove "$item_path" true # Update stats if [[ ! -e "$item_path" ]]; then diff --git a/mole b/mole index f365440..3518a28 100755 --- a/mole +++ b/mole @@ -22,7 +22,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" source "$SCRIPT_DIR/lib/core/common.sh" # Version info -VERSION="1.13.10" +VERSION="1.13.11" MOLE_TAGLINE="Deep clean and optimize your Mac." # Check TouchID configuration