summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/pkg_add/pkg_add6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add
index 8dfffe0bad3..e3eb8719915 100644
--- a/usr.sbin/pkg_add/pkg_add
+++ b/usr.sbin/pkg_add/pkg_add
@@ -1,7 +1,7 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: pkg_add,v 1.10 2003/11/06 18:42:01 espie Exp $
+# $OpenBSD: pkg_add,v 1.11 2003/11/06 22:05:19 espie Exp $
#
# Copyright (c) 2003 Marc Espie.
#
@@ -365,6 +365,10 @@ sub really_add($)
}
}
add_installed($pkgname);
+ if ($plist->has(DISPLAY)) {
+ my $pager = $ENV{'PAGER'} || "/usr/bin/more";
+ system($pager, $dest.DISPLAY);
+ }
}
my @todo = (@ARGV);