1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-07 21:29:20 +00:00

Safer cleaning and enhancement capabilities

This commit is contained in:
Tw93
2025-11-29 22:43:57 +09:00
parent 1ded1c9a82
commit 75bd91840f
8 changed files with 242 additions and 100 deletions

View File

@@ -190,10 +190,10 @@ cleanup_path() {
fi
local removed=false
if rm -rf "$expanded_path" 2> /dev/null; then
if safe_remove "$expanded_path" true; then
removed=true
elif request_sudo_access "Removing $label requires admin access"; then
if sudo rm -rf "$expanded_path" 2> /dev/null; then
if safe_sudo_remove "$expanded_path"; then
removed=true
fi
fi