Repository: hbase
Updated Branches:
  refs/heads/branch-1 7b64e7d7d -> 3a4be7f2a


HBASE-12134 publish_hbase_website.sh script can delete the website accidentally


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/3a4be7f2
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/3a4be7f2
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/3a4be7f2

Branch: refs/heads/branch-1
Commit: 3a4be7f2ace0f38dc5c4967a586141b86d703eb3
Parents: 7b64e7d
Author: Misty Stanley-Jones <[email protected]>
Authored: Wed Oct 1 15:44:21 2014 +1000
Committer: Misty Stanley-Jones <[email protected]>
Committed: Wed Oct 1 15:46:21 2014 +1000

----------------------------------------------------------------------
 dev-support/publish_hbase_website.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/3a4be7f2/dev-support/publish_hbase_website.sh
----------------------------------------------------------------------
diff --git a/dev-support/publish_hbase_website.sh 
b/dev-support/publish_hbase_website.sh
index ca171d3..2763dec 100644
--- a/dev-support/publish_hbase_website.sh
+++ b/dev-support/publish_hbase_website.sh
@@ -89,6 +89,11 @@ if [ $INTERACTIVE ]; then
     case $yn in
         [Yy]* ) 
                        mvn clean package javadoc:aggregate site site:stage 
-DskipTests
+          status=$?
+          if [ $status != 0 ]; then
+            echo "The website does not build. Aborting."
+            exit $status
+          fi
                        ;;
         [Nn]* ) 
           echo "Not building the site."
@@ -97,6 +102,11 @@ if [ $INTERACTIVE ]; then
 else
   echo "Building the site in auto mode."
   mvn clean package javadoc:aggregate site site:stage -DskipTests
+  status=$?
+  if [ $status != 0 ]; then
+    echo "The website does not build. Aborting."
+    exit $status
+  fi
 fi
 
 

Reply via email to