Commit 46159c15 by Bruce Korb Committed by Bruce Korb

"test" is better at testing for directories than "ls"

From-SVN: r38499
parent 47986760
......@@ -3,6 +3,7 @@
* fixinc/Makefile.in: fix for ancient Bourne shell
* fixinc/Makefile.BEOS: obsolete
* fixinc/Makefile.DOS: obsolete
* fixinc/fixincl.sh(LINKS): use `test -d' rather than `ls' for testing
2000-12-27 Bernd Schmidt <bernds@redhat.com>
......
......@@ -449,11 +449,11 @@ if $LINKS; then
all_dirs=`find . -type l -print`
for file in $all_dirs
do
if ls -lLd $file > /dev/null
then :
else rm -f $file
test $VERBOSE -gt 3 && echo " removed $file"
rmdir `dirname $file` > /dev/null && \
if test ! -d $file
then
rm -f $file
test $VERBOSE -gt 3 && echo " removed $file"
rmdir `dirname $file` > /dev/null && \
test $VERBOSE -gt 3 && \
echo " removed `dirname $file`"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment