summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
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 {