diff options
author | Joerg Jaspert <joerg@debian.org> | 2009-12-28 22:51:37 +0100 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2009-12-28 22:51:37 +0100 |
commit | 422a8bf4de1a4662268413ee32b8e21e17b77c50 (patch) | |
tree | 068ddd098b4c20c9bda05ea9a3320b5f089222ea | |
parent | 9c0dad2d25d7abbd9842d009483e528d9a0515e4 (diff) |
runmirrors getopts
merge \?) and :) into *)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
-rwxr-xr-x | bin/runmirrors | 8 |
1 files changed, 2 insertions, 6 deletions
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 |