summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd.sh b/src/cmd.sh
index 569ee13..e446f5c 100644
--- a/src/cmd.sh
+++ b/src/cmd.sh
@@ -114,8 +114,8 @@ run_cmd()
if is_cmd "${cmd}"; then
running_cmd="${cmd}"
running_cmd_clean="${cmd_clean}"
- "cmd_${cmd_clean}_main" "${@}"
- es=${?}
+ es=0
+ "cmd_${cmd_clean}_main" "${@}" || es=${?}
running_cmd=''
running_cmd_clean=''
else