summaryrefslogtreecommitdiffstats
path: root/src/cmd.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 18:09:19 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 18:09:19 (EDT)
commit48c70b66730894d88b8db7865a00474fefad7588 (patch)
treef5295d966b2671ce0897ab79168ac676860b1c47 /src/cmd.sh
parent141aa7827e18b5b79fa327e6bdb3745d0c74f9e7 (diff)
run_cmd(): Make "set -e"-safe
Diffstat (limited to 'src/cmd.sh')
-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