mirror of
https://github.com/tw93/Mole.git
synced 2026-02-05 02:09:43 +00:00
workflow
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user