summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2009-12-28 22:51:37 +0100
committerJoerg Jaspert <joerg@debian.org>2009-12-28 22:51:37 +0100
commit422a8bf4de1a4662268413ee32b8e21e17b77c50 (patch)
tree068ddd098b4c20c9bda05ea9a3320b5f089222ea
parent9c0dad2d25d7abbd9842d009483e528d9a0515e4 (diff)
runmirrors getopts
merge \?) and :) into *) Signed-off-by: Joerg Jaspert <joerg@debian.org>
-rwxr-xr-xbin/runmirrors8
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