]> git.argeo.org Git - gpl/argeo-slc.git/commitdiff
Properly catch exit codes
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 11 Jun 2009 08:38:19 +0000 (08:38 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 11 Jun 2009 08:38:19 +0000 (08:38 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@2529 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

buildSite.sh

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