HBASE-12134 publish_hbase_website.sh script can delete the website accidentally
This commit is contained in:
parent
ff31691c84
commit
456e9fa7a7
|
@ -89,6 +89,11 @@ if [ $INTERACTIVE ]; then
|
||||||
case $yn in
|
case $yn in
|
||||||
[Yy]* )
|
[Yy]* )
|
||||||
mvn clean package javadoc:aggregate site site:stage -DskipTests
|
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]* )
|
[Nn]* )
|
||||||
echo "Not building the site."
|
echo "Not building the site."
|
||||||
|
@ -97,6 +102,11 @@ if [ $INTERACTIVE ]; then
|
||||||
else
|
else
|
||||||
echo "Building the site in auto mode."
|
echo "Building the site in auto mode."
|
||||||
mvn clean package javadoc:aggregate site site:stage -DskipTests
|
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
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue