diff options
author | P. J. McDermott <pj@pehjota.net> | 2017-08-03 13:05:12 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2017-08-03 13:05:12 (EDT) |
commit | c0bd6406879ce9c2f7c6fd2693edffcf2a64d492 (patch) | |
tree | 40675a5b0548860b3def987a25a2ce8a734189e9 | |
parent | 06a34b8708d80db9a81e5a1b06f196c59bae851a (diff) |
src/cmd.sh: Add return statements
-rw-r--r-- | src/cmd.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -58,6 +58,8 @@ print_opt_summaries() printf '%s\n' "${summary}" | fold -s -w 56 | \ sed "2,\$s/^/${padding}/;" done + + return 0 } print_cmd_summaries() @@ -80,6 +82,8 @@ print_cmd_summaries() printf '%s\n' "${summary}" | fold -s -w 56 | \ sed "2,\$s/^/${padding}/;" done + + return 0 } print_cmd_usage() @@ -93,6 +97,7 @@ print_cmd_usage() usage="$(get_msg "cmd_${cmd_clean}_usage")" printf "$(get_msg 'cmd_usage')\n" "${0}" "${cmd}" "${usage}" + return 0 } is_cmd() @@ -116,4 +121,6 @@ run_cmd() else error 1 "$(get_msg 'cmd_not_found')" "${cmd}" fi + + return 0 } |