diff options
Diffstat (limited to 'bin/pkg')
-rwxr-xr-x | bin/pkg | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 { |