forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r930120 - /forrest/zone/config/update-forrest-trunk.sh
Date Thu, 01 Apr 2010 22:41:27 GMT
Author: crossley
Date: Thu Apr  1 22:41:27 2010
New Revision: 930120

URL: http://svn.apache.org/viewvc?rev=930120&view=rev
Log:
Fix syntax for error tests/send mail.

Modified:
    forrest/zone/config/update-forrest-trunk.sh

Modified: forrest/zone/config/update-forrest-trunk.sh
URL: http://svn.apache.org/viewvc/forrest/zone/config/update-forrest-trunk.sh?rev=930120&r1=930119&r2=930120&view=diff
==============================================================================
--- forrest/zone/config/update-forrest-trunk.sh (original)
+++ forrest/zone/config/update-forrest-trunk.sh Thu Apr  1 22:41:27 2010
@@ -52,7 +52,7 @@ cd /export/opt/forrest-trunk
 svn update >> $logfile 2>&1
 statusUpdate=$?
 echo "statusUpdate=$statusUpdate" >> $logfile
-if [ ! $statusUpdate ]; then
+if [ "$statusUpdate" != "0" ]; then
   sendMsg "svn update failed"
   exit 1
 fi
@@ -65,7 +65,7 @@ cd main
 ./build.sh clean >> $logfile 2>&1
 statusClean=$?
 echo "statusClean=$statusClean" >> $logfile
-if [ ! $statusClean ]; then
+if [ "$statusClean" != "0" ]; then
   sendMsg "build clean failed"
 fi
 
@@ -76,7 +76,7 @@ echo "Do build ..." >> $logfile 2>&1
 statusBuild=$?
 
 echo "statusBuild=$statusBuild" >> $logfile
-if [ ! $statusBuild ]; then
+if [ "$statusBuild" != "0" ]; then
   sendMsg "build failed"
 fi
 



Mime
View raw message