From 810e58c74b2904725861cf2e7259d440a81766a6 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Thu, 6 Oct 2016 11:39:34 -0400 Subject: [PATCH] build: fix download script for i686 and make sure there is an error if the arch is unknown --- scripts/download | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/download b/scripts/download index 64cb6180f..abe829e83 100755 --- a/scripts/download +++ b/scripts/download @@ -12,13 +12,16 @@ tag="v0.12.1-bitcore-4" if [ "${platform}" == "linux" ]; then if [ "${arch}" == "x86_64" ]; then tarball_name="bitcoin-${version}-linux64.tar.gz" - elif [ "${arch}" == "x86_32" ]; then + elif [ "${arch}" == "x86_32" ] || [ "${arch}" == "i686" ] ; then tarball_name="bitcoin-${version}-linux32.tar.gz" + else + echo "Bitcoin binary distribution not available for architecture ${arch}" + exit -1 fi elif [ "${platform}" == "darwin" ]; then tarball_name="bitcoin-${version}-osx64.tar.gz" else - echo "Bitcoin binary distribution not available for platform and architecture" + echo "Bitcoin binary distribution not available for platform ${platform}" exit -1 fi