Fixed a problem with AUTOTEST cleantest.sh script

In the case where there are no '.err' files, this script was deleting files it
should not have.  Fixed by adding a check that each .err file actually exists.
This commit is contained in:
Rob Falgout 2016-05-23 17:40:12 -07:00
parent 0fbc6fb651
commit 4db0e9dc9a

View File

@ -36,8 +36,11 @@ if [ "x$1" = "x" ]
then
for i in *.err
do
testname=`basename $i .err`
rm -fr $testname.???
if [ -f $i ] # This check is important in the case that there are no .err files
then
testname=`basename $i .err`
rm -fr $testname.???
fi
done
else
while [ "$*" ]