From: Augustin Degomme Date: Tue, 8 Jan 2019 15:48:46 +0000 (+0100) Subject: protect against entering the loop when no match is found X-Git-Tag: v3_22~643 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f162043adbc1fc64ec9c645bbaf7b7640917d40f protect against entering the loop when no match is found --- diff --git a/tools/jenkins/Coverage.sh b/tools/jenkins/Coverage.sh index 9cac82361f..424d5f66a7 100755 --- a/tools/jenkins/Coverage.sh +++ b/tools/jenkins/Coverage.sh @@ -95,6 +95,7 @@ if [ -f Testing/TAG ] ; then then for report in $WORKSPACE/java_cov* do + if [ ! -e "$report" ]; then continue; fi java -jar /home/ci/codacy-coverage-reporter-4.0.1-assembly.jar report -l Java -r $report --partial done java -jar /home/ci/codacy-coverage-reporter-4.0.1-assembly.jar final