Use ls instead of echo to avoid returning * on empty dirs
This commit is contained in:
parent
2f1bc2aea6
commit
3854b49dfd
@ -544,7 +544,7 @@ symlink_man()
|
|||||||
OIFS="$IFS"
|
OIFS="$IFS"
|
||||||
IFS="
|
IFS="
|
||||||
"
|
"
|
||||||
manpages="$(echo $i/*)"
|
manpages="$(${__ls} $i/* 2>/dev/null)"
|
||||||
for manpage in $manpages
|
for manpage in $manpages
|
||||||
do
|
do
|
||||||
solink="$(${__head} -n 1 $manpage)"
|
solink="$(${__head} -n 1 $manpage)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user