From d4b5aa3ae47aa899777ed6af6f493b2f283db28c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 3 Jun 2008 16:32:07 +0200 Subject: bin/pkg: pkg_doc: fixed it --- bin/pkg | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bin/pkg') diff --git a/bin/pkg b/bin/pkg index 7df34d1..de3a31c 100755 --- a/bin/pkg +++ b/bin/pkg @@ -297,10 +297,8 @@ pkg_changelog () { pkg_doc () { # FIXME this globbing sucks - if ([ -x $PDIR/*/bin/$1 ]) { - if (file $PDIR/*/bin/$1 | grep 'perl script text executable' &> /dev/null) { - perldoc $PDIR/*/bin/$1 - } + if (file $PDIR/*/bin/$1 | grep 'perl script text executable' &> /dev/null) { + perldoc $PDIR/*/bin/$1 } elif ([ -r $PDIR/*/doc/$1 ]) { less $PDIR/*/doc/$1 } else { -- cgit v1.2.3