Modified AUTOTEST/cleantest.sh to avoid removing '.bat' files

This commit is contained in:
Rob Falgout 2018-01-11 08:38:43 -08:00
parent b45dc3c1d3
commit 7ffef6c761

View File

@ -39,14 +39,16 @@ then
if [ -f $i ] # This check is important in the case that there are no .err files if [ -f $i ] # This check is important in the case that there are no .err files
then then
testname=`basename $i .err` testname=`basename $i .err`
rm -fr $testname.??? # Use explicit extensions to avoid removing '.bat' files
rm -fr $testname.err $testname.dir $testname.out $testname.fil
fi fi
done done
else else
while [ "$*" ] while [ "$*" ]
do do
testname=$1 testname=$1
rm -fr $testname.??? # Use explicit extensions to avoid removing '.bat' files
rm -fr $testname.err $testname.dir $testname.out $testname.fil
shift shift
done done
fi fi