]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - buildSite.sh
Improve build script
[gpl/argeo-slc.git] / buildSite.sh
index aa539868350a476870ee510df95fccbf0815a920..60e393273503a2741016889570fc1aa6d302bdbd 100755 (executable)
@@ -15,8 +15,7 @@ DATE=`date -u`
 
 # BUILD
 mvn --fail-at-end deploy -P$PROFILES 2>&1 | tee deploy.log
-
-if [ $? != 0 ] ; then
+if [ $? != "0" ] ; then
        mail -s "Build@$HOSTNAME FAILURE - $DATE - $BUILD_DIR" $TO < deploy.log
 else
        mail -s "Build@$HOSTNAME SUCCESS - $DATE - $BUILD_DIR" $TO < pom.xml
@@ -24,7 +23,6 @@ fi
 
 # SITE
 mvn --fail-at-end site-deploy -P$PROFILES 2>&1 | tee siteGeneration.log
-
 if [ $? != 0 ] ; then
        mail -s "SiteGeneration@$HOSTNAME FAILURE - $DATE - $BUILD_DIR" $TO < siteGeneration.log
 else