From 48c70b66730894d88b8db7865a00474fefad7588 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 25 Apr 2019 18:09:19 -0400 Subject: run_cmd(): Make "set -e"-safe --- 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 -- cgit v0.9.1