mirror of
https://github.com/tw93/Mole.git
synced 2026-02-08 12:39:19 +00:00
fix: P1/P2 issues in file ops, menu state, and logging
- Fix safe_sudo_remove early exit on error (P1) - Fix menu filter state leakage in paginated menu (P2) - Fix cleanup of MOLE_MENU_FILTER_NAMES in app selector (P2) - Correct log_operation signature for memory dumps (P2) - Apply minor formatting fixes to dev cleanup module
This commit is contained in:
@@ -366,8 +366,7 @@ safe_sudo_remove() {
|
||||
|
||||
local output
|
||||
local ret
|
||||
output=$(sudo rm -rf "$path" 2>&1) # safe_remove
|
||||
ret=$?
|
||||
output=$(sudo rm -rf "$path" 2>&1) || ret=$? # safe_remove
|
||||
|
||||
if [[ $ret -eq 0 ]]; then
|
||||
log_operation "${MOLE_CURRENT_COMMAND:-clean}" "REMOVED" "$path" "$size_human"
|
||||
|
||||
Reference in New Issue
Block a user