From b13e8fdc3e9d75e03345575fa38f578ef5dbaadf Mon Sep 17 00:00:00 2001 From: rhatto Date: Thu, 12 Oct 2006 18:29:34 +0000 Subject: small fix on help --- firma | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'firma') diff --git a/firma b/firma index 92ff8c3..d45aecb 100755 --- a/firma +++ b/firma @@ -1883,7 +1883,7 @@ function SourceFirmaConfig { # returns: 0 #------------------------------------------------------------- - [ "$1" == "help" ] && echo -e "List mandatory firma config parameters\n\n" + [ "$1" == "help" ] && echo -e "\nList mandatory firma config parameters\n" [ "$1" == "help" ] && echo "GPG_BINARY= path to the GnuPG binary" || \ GPG_BINARY="`EvalConfigParameter $FIRMA_CONFIG_FILE GPG_BINARY`" @@ -1897,7 +1897,7 @@ function SourceFirmaConfig { [ "$1" == "help" ] && echo "LISTS_DIR= path to the mailing lists directory" || \ LISTS_DIR="`EvalConfigParameter $FIRMA_CONFIG_FILE LISTS_DIR`" - [ "$1" == "help" ] && echo -e "List optional firma config parameters\n\n" + [ "$1" == "help" ] && echo -e "\nList optional firma config parameters\n" [ "$1" == "help" ] && echo "USER= user that runs firma (usually the same as your MTA user); defaults to "nobody"; you can also specify this parameter @@ -2216,11 +2216,13 @@ case $# in echo "you should enter PARAMETER='value' (without spaces before or after the equal sign)." SourceFirmaConfig help SourceListConfig help + EXIT_CODE=0 + else + echo >&2 "$(basename $0): too many arguments -- $@" + Usage + EXIT_CODE=1 fi fi - echo >&2 "$(basename $0): too many arguments -- $@" - Usage - EXIT_CODE=1 ;; *) echo >&2 "$(basename $0): invalid option -- $1" -- cgit v1.2.3