From ca8bc22e6a10064ce9917e0c5a3739d01b9a0085 Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Sat, 6 Jun 2009 21:30:42 +0000 Subject: [PATCH] Improve build script git-svn-id: https://svn.argeo.org/slc/trunk@2502 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- buildSite.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildSite.sh b/buildSite.sh index b3fa4e10e..aa5398683 100755 --- a/buildSite.sh +++ b/buildSite.sh @@ -16,7 +16,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 @@ -25,7 +25,7 @@ fi # SITE mvn --fail-at-end site-deploy -P$PROFILES 2>&1 | tee siteGeneration.log -if [ $? != "0" ] ; then +if [ $? != 0 ] ; then mail -s "SiteGeneration@$HOSTNAME FAILURE - $DATE - $BUILD_DIR" $TO < siteGeneration.log else # No need to send email for successful site generation -- 2.39.2