Index: /issm/trunk/cron/report.sh
===================================================================
--- /issm/trunk/cron/report.sh	(revision 1434)
+++ /issm/trunk/cron/report.sh	(revision 1435)
@@ -129,10 +129,13 @@
 
 		# go through the lines of $package.log
-		for i in $(seq 1 1 `wc -l $package.log | awk '{printf("%s",$1);}'`); do 
+		COUNTER=1
+		MAX=`wc -l $package.log | awk '{printf("%s",$1);}'`
+		while [  $COUNTER -lt $MAX ]; do
+			let COUNTER=COUNTER+1 
 
 			echo "<tr>"
 
 			#see wether it is success or error (get color: red or green)
-			if [ "`cat $package.log | awk '{ printf "line%so %s\n", NR, $0 }' | awk '/line'$i'o/ {printf("%s\n",$2);}';`" == "SUCCESS" ];  
+			if [ "`cat $package.log | awk '{ printf "line%so %s\n", NR, $0 }' | awk '/line'$COUNTER'o/ {printf("%s\n",$2);}';`" == "SUCCESS" ];  
 			then 
 				color="bgcolor=#ddffdd";
@@ -142,5 +145,5 @@
 
 			#build html corresponding line
-			cat $package.log | awk '{ printf "line%so %s\n", NR, $0 }' | awk '/line'$i'o/ {printf("<td '$color' style=\"font-size:14px;\">%s</td><td '$color' style=\"font-size:14px;\"> %s%s%s</td><td '$color' style=\"font-size:14px;\"> %s</td><td '$color' style=\"font-size:14px;\"> %s</td><td '$color' style=\"font-size:14px;\"> %s</td>",$2,$4,$5,$6,$8,$10,$14);}';
+			cat $package.log | awk '{ printf "line%so %s\n", NR, $0 }' | awk '/line'$COUNTER'o/ {printf("<td '$color' style=\"font-size:14px;\">%s</td><td '$color' style=\"font-size:14px;\"> %s%s%s</td><td '$color' style=\"font-size:14px;\"> %s</td><td '$color' style=\"font-size:14px;\"> %s</td><td '$color' style=\"font-size:14px;\"> %s</td>",$2,$4,$5,$6,$8,$10,$14);}';
 			echo "</tr>"
 		done
