From 7f694c17edb4ae691bff4916d037685d0b198fcf Mon Sep 17 00:00:00 2001 From: James Conroy Date: Tue, 8 Feb 2022 20:33:09 -0600 Subject: [PATCH] Revert improvements to usage function Made to make it more consistent with the rest of the scripts in Security Onion --- salt/common/tools/sbin/so-status | 34 ++++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/salt/common/tools/sbin/so-status b/salt/common/tools/sbin/so-status index 7b76eeb4e..15f4fd0ae 100755 --- a/salt/common/tools/sbin/so-status +++ b/salt/common/tools/sbin/so-status @@ -18,20 +18,15 @@ MYNAME="${0##*/}" display_help() { - printf "%s" "${MYNAME}" - printf " [%s]" "-h" "-q|--quiet" - printf "\n" - printf "\t-%s\t%s\n" \ - "h" "Show this message." \ - "q,--quiet" "suppress the output and return a single status code of overall status" - printf "\nReturn Codes:\n" - printf "\t%s - %s\n" \ - "0" "Ok" \ - "1" "Error" \ - "2" "Starting/Pending"\ - "99" "Installing SO" - # exit with code 0, unless passed a number when called - exit "${1:-0}" +cat <