Index: /issm/trunk/cron/report.sh
===================================================================
--- /issm/trunk/cron/report.sh	(revision 1575)
+++ /issm/trunk/cron/report.sh	(revision 1576)
@@ -13,4 +13,10 @@
 
 #create some variables
+if [ `wc -l nightly.log | awk '{printf("%s",$1);}'`  = "0" ]
+then
+	IS_INSTALL=0
+else
+	IS_INSTALL=1
+fi
 if [ `wc -l check.log | awk '{printf("%s",$1);}'`  = "0" ]
 then
@@ -18,10 +24,4 @@
 else
 	IS_END=1
-fi
-if [ `wc -l tests.log | awk '{printf("%s",$1);}'`  = "0" ]
-then
-	IS_INSTALL=0
-else
-	IS_INSTALL=1
 fi
 
@@ -107,5 +107,5 @@
 runs elapsed time: $ELAPSED_RUN<br>
 <br>
-status: $(if [ $IS_INSTALL==0 ];
+status: $(if [ $(echo $IS_INSTALL) = 0 ];
 then
 	#installation failed, end of report
@@ -113,5 +113,5 @@
 	rm check.log errors.log success.log tests.log
 else
-	if [ $IS_END==0 ];
+	if [ $(echo $IS_END) = 0 ];
 	then
 		echo "<span style=\"color:#FF0000\">stopped before the end</span>"
@@ -129,5 +129,5 @@
 
 #report content
-if [ $IS_END != 0 ];
+if [ $(echo $IS_INSTALL) = 1 ];
 then
 	cat << END > content.html
@@ -208,5 +208,5 @@
 
 #concatenate files
-if [ $IS_END != 0 ];
+if [ $(echo $IS_INSTALL) = 1 ];
 then
 	cat header.html summary.html content.html footer.html > report.html
