You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@predictionio.apache.org by em...@apache.org on 2017/02/06 16:11:25 UTC

incubator-predictionio git commit: [PIO-22] Use wildcard to allow swapping in a dev tar

Repository: incubator-predictionio
Updated Branches:
  refs/heads/develop 7615b4708 -> 1321f1ac7


[PIO-22] Use wildcard to allow swapping in a dev tar


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

Branch: refs/heads/develop
Commit: 1321f1ac7cfe2b3f8019974c19de60046505a1c9
Parents: 7615b47
Author: EmergentOrder <le...@gmail.com>
Authored: Mon Feb 6 10:10:45 2017 -0600
Committer: EmergentOrder <le...@gmail.com>
Committed: Mon Feb 6 10:10:45 2017 -0600

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


http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/1321f1ac/bin/install.sh
----------------------------------------------------------------------
diff --git a/bin/install.sh b/bin/install.sh
index 40eb8d9..e485df9 100755
--- a/bin/install.sh
+++ b/bin/install.sh
@@ -280,7 +280,9 @@ echo -e "\033[1;36mStarting PredictionIO setup in:\033[0m $pio_dir"
 
 cd ${TEMP_DIR}
 
-if [[ ! -e ${PIO_FILE} ]]; then
+files=$(ls PredictionIO*.tar.gz 2> /dev/null | wc -l)
+
+if [[ $files == 0 ]]; then
   echo "Downloading PredictionIO..."
   curl -L https://codeload.github.com/apache/incubator-predictionio/tar.gz/master > incubator-predictionio-master.tar.gz