summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pkg_add/pkg')
-rw-r--r--usr.sbin/pkg_add/pkg5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/pkg b/usr.sbin/pkg_add/pkg
index e16274ba182..f9354b6f8a2 100644
--- a/usr.sbin/pkg_add/pkg
+++ b/usr.sbin/pkg_add/pkg
@@ -1,6 +1,6 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: pkg,v 1.18 2010/06/10 23:39:50 espie Exp $
+# $OpenBSD: pkg,v 1.19 2010/12/05 09:41:55 espie Exp $
#
# Copyright (c) 2010 Marc Espie <espie@openbsd.org>
#
@@ -27,8 +27,7 @@ sub run
if ($@) {
die $@;
}
- $module->parse_and_run($name);
- exit(0);
+ exit($module->parse_and_run($name));
}
my @l = qw(add check create delete info);