Use the find -exec instead of find ... | xargs otherwise when there is error log in the output of the build.

This commit is contained in:
Romain Gilles
2016-09-06 23:28:22 +02:00
parent afd230af8d
commit 582fd90c4a

View File

@@ -29,7 +29,7 @@ if [[ "$testdir" != "$thisdir" ]]; then
exit 1
fi
find ../ -name "*.class" | xargs rm
find .. -type f -name "*.class" -exec rm {} \;
if [[ -e "${targetdir}" ]]; then
echo "clean target"