summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-03 16:32:07 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-03 16:32:07 +0200
commitd4b5aa3ae47aa899777ed6af6f493b2f283db28c (patch)
tree3c47485a45df7b96316ff9de29545a5d05d8dd28 /bin/pkg
parente66cdc9ef77931bf63626a693459a2da833fc2e2 (diff)
bin/pkg: pkg_doc: fixed it
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg6
1 files changed, 2 insertions, 4 deletions
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 {