You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@predictionio.apache.org by ap...@apache.org on 2016/06/27 19:31:19 UTC

[05/50] [abbrv] incubator-predictionio git commit: Revert "silently delete tmp file instead of asking confirmation"

Revert "silently delete tmp file instead of asking confirmation"

This reverts commit 8e96bb5c3601e58cca866b2a9f9a361fd98b2593.

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/5732d48a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/5732d48a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/5732d48a

Branch: refs/heads/master
Commit: 5732d48a5b40d970d0ccf904f397e35155317ee1
Parents: d9d480a
Author: Donald Szeto <do...@prediction.io>
Authored: Thu Jan 28 17:45:28 2016 -0800
Committer: Donald Szeto <do...@prediction.io>
Committed: Thu Jan 28 17:45:28 2016 -0800

----------------------------------------------------------------------
 bin/install.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/5732d48a/bin/install.sh
----------------------------------------------------------------------
diff --git a/bin/install.sh b/bin/install.sh
index 77281c6..6f57171 100755
--- a/bin/install.sh
+++ b/bin/install.sh
@@ -276,7 +276,9 @@ cd ${TEMP_DIR}
 
 # delete existing tmp file before download again
 if [[ -e  ${PIO_FILE} ]]; then
-  rm ${PIO_FILE}
+  if confirm "Delete existing temporary file?"; then
+    rm ${PIO_FILE}
+  fi
 fi
 
 if [[ ! -e ${PIO_FILE} ]]; then