diff options
author | Patrick 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) |
commit | 48c70b66730894d88b8db7865a00474fefad7588 (patch) | |
tree | f5295d966b2671ce0897ab79168ac676860b1c47 /src/cmd.sh | |
parent | 141aa7827e18b5b79fa327e6bdb3745d0c74f9e7 (diff) |
run_cmd(): Make "set -e"-safe
Diffstat (limited to 'src/cmd.sh')
-rw-r--r-- | src/cmd.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |