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 <[email protected]> Authored: Mon Feb 6 10:10:45 2017 -0600 Committer: EmergentOrder <[email protected]> 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
