diff options
Diffstat (limited to 'usr.sbin/pkg_install/add')
-rw-r--r-- | usr.sbin/pkg_install/add/main.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/usr.sbin/pkg_install/add/main.c b/usr.sbin/pkg_install/add/main.c index 020917c7e17..23be7e12e81 100644 --- a/usr.sbin/pkg_install/add/main.c +++ b/usr.sbin/pkg_install/add/main.c @@ -1,7 +1,7 @@ -/* $OpenBSD: main.c,v 1.4 1998/04/04 22:44:13 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.5 1998/04/07 04:06:37 marc Exp $ */ #ifndef lint -static char *rcsid = "$OpenBSD: main.c,v 1.4 1998/04/04 22:44:13 deraadt Exp $"; +static char *rcsid = "$OpenBSD: main.c,v 1.5 1998/04/07 04:06:37 marc Exp $"; #endif /* @@ -130,12 +130,13 @@ main(int argc, char **argv) } } } + /* If no packages, yelp */ + if (!ch) + usage(prog_name, "Missing package name(s)"); + else if (ch > 1 && AddMode == MASTER) + usage(prog_name, + "Only one package name may be specified with master mode"); } - /* If no packages, yelp */ - else if (!ch) - usage(prog_name, "Missing package name(s)"); - else if (ch > 1 && AddMode == MASTER) - usage(prog_name, "Only one package name may be specified with master mode"); if ((err = pkg_perform(pkgs)) != NULL) { if (Verbose) fprintf(stderr, "%d package addition(s) failed.\n", err); |