Index: /issm/trunk-jpl/jenkins/jenkins.sh
===================================================================
--- /issm/trunk-jpl/jenkins/jenkins.sh	(revision 21117)
+++ /issm/trunk-jpl/jenkins/jenkins.sh	(revision 21118)
@@ -407,7 +407,10 @@
 then
 	numtests=`cat matlab_log_examples.log  | grep "starting: " | wc -l`
-	for i in `echo $numtests`
+	echo "Processing: $numtests"
+	counter=0;
+	while [ $counter -lt $numtests];
 	do
 		juLog  -test=Example-$i -name=Error -error=FAILURE cat matlab_log_examples.log
+		let counter+=1
 	done
 fi
