1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 22:04:43 +00:00
This commit is contained in:
Tw93
2025-12-29 15:15:52 +08:00
parent a9e4c7c08e
commit 8666c740cb

View File

@@ -100,7 +100,7 @@ safe_remove() {
# Use || to capture the exit code so set -e won't abort on rm failures
local error_msg
local rm_exit=0
error_msg=$(rm -rf "$path" 2>&1) || rm_exit=$?
error_msg=$(rm -rf "$path" 2>&1) || rm_exit=$? # safe_remove
if [[ $rm_exit -eq 0 ]]; then
return 0