summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()