From 582fd90c4a351d167c98fc6d7d23ed9b6ed0c89f Mon Sep 17 00:00:00 2001 From: Romain Gilles Date: Tue, 6 Sep 2016 23:28:22 +0200 Subject: [PATCH] Use the find -exec instead of find ... | xargs otherwise when there is error log in the output of the build. --- tests/JavaTest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/JavaTest.sh b/tests/JavaTest.sh index ef261a756..40e854b50 100755 --- a/tests/JavaTest.sh +++ b/tests/JavaTest.sh @@ -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"