diff options
-rw-r--r-- | src/cmd.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -108,6 +108,7 @@ run_cmd() { local cmd="${1}" local cmd_clean= + local es= shift cmd_clean="$(printf '%s' "${cmd}" | \ @@ -116,6 +117,7 @@ run_cmd() running_cmd="${cmd}" running_cmd_clean="${cmd_clean}" "cmd_${cmd_clean}_main" "${@}" + es=${?} running_cmd='' running_cmd_clean='' else @@ -123,5 +125,5 @@ run_cmd() return 1 fi - return 0 + return ${es} } |