summaryrefslogtreecommitdiff
path: root/mk/scripts
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-11-18 10:55:30 +0000
committerrillig <rillig@pkgsrc.org>2005-11-18 10:55:30 +0000
commit2de6abd1bee6a5d3005c2f85ed85fc2c0cb51e8e (patch)
tree6b4d8583de892470764812445123771d2ef30255 /mk/scripts
parent794ebf4f2f64a94950e566f4011b8224bcb75be3 (diff)
downloadpkgsrc-2de6abd1bee6a5d3005c2f85ed85fc2c0cb51e8e.tar.gz
Don't accept anything besides the known options on the command line. As
no additional parameters are used it's better to reject them.
Diffstat (limited to 'mk/scripts')
-rwxr-xr-xmk/scripts/mkdatabase9
1 files changed, 2 insertions, 7 deletions
diff --git a/mk/scripts/mkdatabase b/mk/scripts/mkdatabase
index 76c6e5f7350..c924c79ed7e 100755
--- a/mk/scripts/mkdatabase
+++ b/mk/scripts/mkdatabase
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: mkdatabase,v 1.6 2005/11/18 10:51:53 rillig Exp $
+# $NetBSD: mkdatabase,v 1.7 2005/11/18 10:55:30 rillig Exp $
#
# Script for generating a database with complete dependency information
# for a particular package
@@ -128,15 +128,10 @@ while test $# -gt 0; do
exit 0
;;
- -*) echo "$prog: ERROR: $1 is not a valid option"
+ *) echo "$prog: ERROR: $1 is not a valid option"
usage
exit 1
;;
-
- *)
- break
- ;;
-
esac
done