]> git.argeo.org Git - gpl/argeo-slc.git/commitdiff
Improve build script
authorMathieu Baudier <mbaudier@argeo.org>
Sat, 6 Jun 2009 22:12:50 +0000 (22:12 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Sat, 6 Jun 2009 22:12:50 +0000 (22:12 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@2508 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

buildSite.sh

index d1abe4c425c69f186867bf86c2236da4295d390d..9b8c18c494d3c4c9336f1e15aeb338d1bec4e44a 100755 (executable)
@@ -17,7 +17,7 @@ EXIT_STATUS=0
 # BUILD
 mvn --fail-at-end deploy $PROFILES 2>&1 | tee deploy.log
 EXIT_STATUS=$?
 # BUILD
 mvn --fail-at-end deploy $PROFILES 2>&1 | tee deploy.log
 EXIT_STATUS=$?
-if [ $EXIT_STATUS eq 0 ]
+if [ $EXIT_STATUS -eq 0 ]
 then
        mail -s "Build@$HOSTNAME SUCCESS - $DATE - $BUILD_DIR" $TO < pom.xml
 else
 then
        mail -s "Build@$HOSTNAME SUCCESS - $DATE - $BUILD_DIR" $TO < pom.xml
 else
@@ -26,7 +26,7 @@ fi
 
 # SITE
 mvn --fail-at-end site-deploy $PROFILES 2>&1 | tee siteGeneration.log
 
 # SITE
 mvn --fail-at-end site-deploy $PROFILES 2>&1 | tee siteGeneration.log
-if [ $? eq 0 ]
+if [ $? -eq 0 ]
 then
        echo No need to send email for successful site generation
 else
 then
        echo No need to send email for successful site generation
 else