diff options
author | rillig <rillig> | 2005-11-18 10:55:30 +0000 |
---|---|---|
committer | rillig <rillig> | 2005-11-18 10:55:30 +0000 |
commit | 3784f58b8f52266f279e6858bb57fbfc708cc31b (patch) | |
tree | 6b4d8583de892470764812445123771d2ef30255 | |
parent | 4d633e87eb12a03b5b45d68fbf795e3e75a56e30 (diff) | |
download | pkgsrc-3784f58b8f52266f279e6858bb57fbfc708cc31b.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.
-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 |