From a437ef94594a649aef1409e4aaf08299856e795d Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 27 Apr 2019 17:31:21 -0400 Subject: main(): Make "set -e"-safe --- diff --git a/src/main.sh b/src/main.sh index bc807cc..0f850e0 100644 --- a/src/main.sh +++ b/src/main.sh @@ -93,8 +93,8 @@ main() fi ;; esac - run_cmd "${cmd}" "${@}" - es=${?} + es=0 + run_cmd "${cmd}" "${@}" || es=${?} if ! fini_vardata; then return 2 -- cgit v0.9.1