From 2d4a2b0bfda8f2f10de72cebe51e65c29c96577c Mon Sep 17 00:00:00 2001 From: Chris Kleeschulte Date: Mon, 17 Aug 2015 14:03:04 -0400 Subject: [PATCH] Lack of Curl - Added a check for curl in the install script, if no curl, then use wget. --- bin/install | 14 ++++++++++++-- package.json | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/bin/install b/bin/install index fccfd879..6ba1999f 100755 --- a/bin/install +++ b/bin/install @@ -10,10 +10,20 @@ binary_url="https://${bucket_name}.s3.amazonaws.com/${tarball_name}" echo "Downloading binary: ${binary_url}" -curl --fail -I $binary_url +is_curl=true +if hash curl 2>/dev/null; then + curl --fail -I $binary_url +else + is_curl=false + wget --server-response --spider $binary_url +fi if test $? -eq 0; then - curl $binary_url > $tarball_name + if [ "${is_curl}" = true ]; then + curl $binary_url > $tarball_name + else + wget $binary_url + fi if test -e "${tarball_name}"; then echo "Unpacking binary distribution" tar -xvzf $tarball_name diff --git a/package.json b/package.json index 99c6f4e6..fa7abc50 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "bitcore-node", "description": "Full node with extended capabilities using Bitcore and Bitcoin Core", "author": "BitPay ", - "version": "0.2.0-beta.2", + "version": "0.2.0-dev", "main": "./index.js", "repository": "git://github.com/bitpay/bitcore-node.git", "homepage": "https://github.com/bitpay/bitcore-node.js",