diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-03 16:32:07 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-03 16:32:07 +0200 |
commit | d4b5aa3ae47aa899777ed6af6f493b2f283db28c (patch) | |
tree | 3c47485a45df7b96316ff9de29545a5d05d8dd28 /bin/pkg | |
parent | e66cdc9ef77931bf63626a693459a2da833fc2e2 (diff) |
bin/pkg: pkg_doc: fixed it
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 { |