summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-14 13:49:47 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-14 13:50:17 (EDT)
commit3b0a279f9fd09fb619278545b702e3e61cf75664 (patch)
tree014faecbe5242668a9c7cf1dc127364720d4fa3e
parent50681819914df815d826419fbd4d798d5e8f221d (diff)
main(): s/exit/return/
And make redirected FD explicit.
-rw-r--r--src/main.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.sh b/src/main.sh
index a06a885..feb425f 100644
--- a/src/main.sh
+++ b/src/main.sh
@@ -89,8 +89,8 @@ main()
elif ${opt_V:-false}; then
cmd='version'
elif [ ${#} -lt 1 ]; then
- cmd_help_main >&2
- exit 1
+ cmd_help_main 1>&2
+ return 1
else
cmd="${1}"
shift 1