From c0bd6406879ce9c2f7c6fd2693edffcf2a64d492 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 03 Aug 2017 13:05:12 -0400 Subject: src/cmd.sh: Add return statements --- (limited to 'src/cmd.sh') diff --git a/src/cmd.sh b/src/cmd.sh index dbf28ba..71c6180 100644 --- a/src/cmd.sh +++ b/src/cmd.sh @@ -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 } -- cgit v0.9.1