From 7f1800a0c66907c4547a37891e3034b945fac123 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Fri, 13 May 2016 09:52:35 -0400 Subject: [PATCH] only obtain gx if we do not have it --- build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 096cc3b..4a71645 100755 --- a/build.sh +++ b/build.sh @@ -56,8 +56,10 @@ export GOPATH=$PWD/go mkdir -p $GOPATH if [ "x$ipfs" == "xyes" ] ; then - echo "obtaining gx" - go get -u -v github.com/whyrusleeping/gx-go + if [ ! -e $GOPATH/bin/gx ] ; then + echo "obtaining gx" + go get -u -v github.com/whyrusleeping/gx-go + fi mkdir -p vendor/gx/ipfs cd vendor/gx/ipfs $GOPATH/bin/gx get $rev