diff options
author | rillig <rillig@pkgsrc.org> | 2005-11-18 10:55:30 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-11-18 10:55:30 +0000 |
commit | b06e4a7b377b45a0a96ea21c149e7455d924379f (patch) | |
tree | 6b4d8583de892470764812445123771d2ef30255 /mk/scripts | |
parent | 03089d09e88683eb9df8941eeb0fafff6ae62f3e (diff) | |
download | pkgsrc-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-x | mk/scripts/mkdatabase | 9 |
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 |