Exit if architecture is not detected for IPFS install

This commit is contained in:
Bob Mottram 2017-09-18 15:21:27 +01:00
parent da5d4d25ba
commit 9117ee7118
1 changed files with 4 additions and 0 deletions

View File

@ -427,6 +427,10 @@ function mesh_install_ipfs_go {
echo $"Using $IPFS_ARCH"
fi
fi
if [ ! $IPFS_ARCH ]; then
echo $'Architecture not detected for IPFS install'
exit 738765235
fi
IPFS_FILE=go-ipfs_v${IPFS_GO_VERSION}_linux-${IPFS_ARCH}.tar.gz
wget https://ipfs.io/ipns/dist.ipfs.io/go-ipfs/v${IPFS_GO_VERSION}/${IPFS_FILE}