svn commit: r930120 - /forrest/zone/config/update-forrest-trunk.sh

[email protected]
Newsgroups gmane.text.xml.forrest.cvs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.