summaryrefslogtreecommitdiffstats
path: root/src/main.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-14 13:45:51 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-14 13:45:51 (EDT)
commit68d6eeb8e72ee04f98dba24aa778761f869b9432 (patch)
tree2a20fc487ec0f8c9add3eec40413763dccc24892 /src/main.sh
parent5e2794ab4741face2e064e5a6d6aecade59bed27 (diff)
main(): Fix return with set -e
Diffstat (limited to 'src/main.sh')
-rw-r--r--src/main.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.sh b/src/main.sh
index 8e19665..f50cad4 100644
--- a/src/main.sh
+++ b/src/main.sh
@@ -59,7 +59,6 @@ _get_options()
main()
{
local cmd=
- local status=
if [ -f "$(dirname -- "${0}")/.builddirstamp" ]; then
in_place=true
@@ -88,10 +87,11 @@ main()
shift 1
fi
- run_cmd "${cmd}" "${@}"
- status=${?}
-
- return ${status}
+ if run_cmd "${cmd}" "${@}"; then
+ return 0
+ else
+ return ${?}
+ fi
}
_lock()