summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-27 17:31:21 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-27 17:31:21 (EDT)
commita437ef94594a649aef1409e4aaf08299856e795d (patch)
treef8d6660f8120c1bf8e6cc0f0f7a77215700eafc5 /src
parentf86181fdab181e28696c0e0899a840badfe2d77d (diff)
main(): Make "set -e"-safe
Diffstat (limited to 'src')
-rw-r--r--src/main.sh4
1 files changed, 2 insertions, 2 deletions
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