From 422a8bf4de1a4662268413ee32b8e21e17b77c50 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Mon, 28 Dec 2009 22:51:37 +0100 Subject: runmirrors getopts merge \?) and :) into *) Signed-off-by: Joerg Jaspert --- bin/runmirrors | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'bin/runmirrors') diff --git a/bin/runmirrors b/bin/runmirrors index 60471d6..4a3ef51 100755 --- a/bin/runmirrors +++ b/bin/runmirrors @@ -66,12 +66,8 @@ if [ $# -gt 0 ]; then exit 0 ;; - \?) echo "Unknown option \"-$OPTARG\"." - echo -e $HELP - exit 1 - ;; - :) echo "Option \"-$OPTARG\" needs an argument." - echo -e $HELP + *) echo "Invalid usage" + echo -e $HELP exit 1 ;; esac -- cgit v1.2.3