diff options
author | rhatto <rhatto> | 2006-10-12 18:29:34 +0000 |
---|---|---|
committer | rhatto <rhatto> | 2006-10-12 18:29:34 +0000 |
commit | b13e8fdc3e9d75e03345575fa38f578ef5dbaadf (patch) | |
tree | 834f10da384f2f88d662f3bfe2996748b3f903bb | |
parent | b2652124bdb93e6adf1a79ba9cdc932b972e3811 (diff) | |
download | firma-b13e8fdc3e9d75e03345575fa38f578ef5dbaadf.tar.gz firma-b13e8fdc3e9d75e03345575fa38f578ef5dbaadf.tar.bz2 |
small fix on help
-rwxr-xr-x | firma | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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" |