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
commitb06e4a7b377b45a0a96ea21c149e7455d924379f (patch)
tree6b4d8583de892470764812445123771d2ef30255 /mk/scripts
parent03089d09e88683eb9df8941eeb0fafff6ae62f3e (diff)
downloadpkgsrc-b06e4a7b377b45a0a96ea21c149e7455d924379f.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