summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-01-17 10:00:42 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-01-17 10:00:42 (EST)
commit03f6b3e526edc8e03ef19755af4297dc6b80373d (patch)
treecfa4a28b4e5d78d4fe837051097852ada8bed76e
parentf1e6bfe98a1dd8fc0a2b8d4f117bf77b6a5cb6aa (diff)
main(): s/exit/return/
-rw-r--r--src/main.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.sh b/src/main.sh
index b77a2f5..de7e8f6 100644
--- a/src/main.sh
+++ b/src/main.sh
@@ -46,7 +46,7 @@ main()
if ! get_options "${@}"; then
cmd_help_main >&2
- exit 1
+ return 1
fi
shift $(($OPTIND - 1))
@@ -56,7 +56,7 @@ main()
cmd='version'
elif [ ${#} -lt 1 ]; then
cmd_help_main >&2
- exit 1
+ return 1
else
cmd="${1}"
shift