summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/pkg/pkg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c
index aa8260b..485c08c 100644
--- a/usr.sbin/pkg/pkg.c
+++ b/usr.sbin/pkg/pkg.c
@@ -457,10 +457,8 @@ main(__unused int argc, char *argv[])
* a system is configured to use pkg, don't bootstrap pkg
* when that argument is given as argv[1].
*/
- if ( argv[1] != NULL && strcmp(argv[1], "-N") == 0) {
- printf("%s", "pkg is not installed\n");
- exit(EXIT_FAILURE);
- }
+ if ( argv[1] != NULL && strcmp(argv[1], "-N") == 0)
+ errx(EXIT_FAILURE, "pkg is not installed\n");
/*
* Do not ask for confirmation if either of stdin or stdout is
OpenPOWER on IntegriCloud