predictionio-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [04/50] [abbrv] incubator-predictionio git commit: Revert "added confirm delete message"
Date Mon, 27 Jun 2016 19:31:18 GMT
Revert "added confirm delete message"

This reverts commit cc7ab5585d8f2aa609d36b033550937044819a2d.

Conflicts:
	bin/install.sh


Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/d9d480a6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/d9d480a6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/d9d480a6

Branch: refs/heads/master
Commit: d9d480a6649290f3f5e77c3bd5beeec2df8396be
Parents: 7377860
Author: Donald Szeto <donald@prediction.io>
Authored: Thu Jan 28 17:44:19 2016 -0800
Committer: Donald Szeto <donald@prediction.io>
Committed: Thu Jan 28 17:44:19 2016 -0800

----------------------------------------------------------------------
 bin/install.sh | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/d9d480a6/bin/install.sh
----------------------------------------------------------------------
diff --git a/bin/install.sh b/bin/install.sh
index 252ab3e..77281c6 100755
--- a/bin/install.sh
+++ b/bin/install.sh
@@ -276,9 +276,7 @@ cd ${TEMP_DIR}
 
 # delete existing tmp file before download again
 if [[ -e  ${PIO_FILE} ]]; then
-  if confirm "Delete existing $PIO_FILE?"; then
-    rm ${PIO_FILE}
-  fi
+  rm ${PIO_FILE}
 fi
 
 if [[ ! -e ${PIO_FILE} ]]; then
@@ -304,9 +302,7 @@ mkdir ${vendors_dir}
 # Spark
 echo -e "\033[1;36mStarting Spark setup in:\033[0m $spark_dir"
 if [[ -e spark-${SPARK_VERSION}-bin-hadoop2.6.tgz ]]; then
-  if confirm "Delete existing spark-$SPARK_VERSION-bin-hadoop2.6.tgz?"; then
-    rm spark-${SPARK_VERSION}-bin-hadoop2.6.tgz
-  fi
+  rm spark-${SPARK_VERSION}-bin-hadoop2.6.tgz
 fi
 if [[ ! -e spark-${SPARK_VERSION}-bin-hadoop2.6.tgz ]]; then
   echo "Downloading Spark..."
@@ -358,9 +354,7 @@ case $source_setup in
     # Elasticsearch
     echo -e "\033[1;36mStarting Elasticsearch setup in:\033[0m $elasticsearch_dir"
     if [[ -e elasticsearch-${ELASTICSEARCH_VERSION}.tar.gz ]]; then
-      if confirm "Delete existing elasticsearch-$ELASTICSEARCH_VERSION.tar.gz?"; then
-        rm elasticsearch-${ELASTICSEARCH_VERSION}.tar.gz
-      fi
+      rm elasticsearch-${ELASTICSEARCH_VERSION}.tar.gz
     fi
     if [[ ! -e elasticsearch-${ELASTICSEARCH_VERSION}.tar.gz ]]; then
       echo "Downloading Elasticsearch..."
@@ -387,9 +381,7 @@ case $source_setup in
     # HBase
     echo -e "\033[1;36mStarting HBase setup in:\033[0m $hbase_dir"
     if [[ -e hbase-${HBASE_VERSION}-bin.tar.gz ]]; then
-      if confirm "Delete existing hbase-$HBASE_VERSION-bin.tar.gz?"; then
-        rm hbase-${HBASE_VERSION}-bin.tar.gz
-      fi
+      rm hbase-${HBASE_VERSION}-bin.tar.gz
     fi
     if [[ ! -e hbase-${HBASE_VERSION}-bin.tar.gz ]]; then
       echo "Downloading HBase..."


Mime
View raw message