only obtain gx if we do not have it
This commit is contained in:
parent
504c9ae84e
commit
7f1800a0c6
2
build.sh
2
build.sh
@ -56,8 +56,10 @@ export GOPATH=$PWD/go
|
|||||||
mkdir -p $GOPATH
|
mkdir -p $GOPATH
|
||||||
|
|
||||||
if [ "x$ipfs" == "xyes" ] ; then
|
if [ "x$ipfs" == "xyes" ] ; then
|
||||||
|
if [ ! -e $GOPATH/bin/gx ] ; then
|
||||||
echo "obtaining gx"
|
echo "obtaining gx"
|
||||||
go get -u -v github.com/whyrusleeping/gx-go
|
go get -u -v github.com/whyrusleeping/gx-go
|
||||||
|
fi
|
||||||
mkdir -p vendor/gx/ipfs
|
mkdir -p vendor/gx/ipfs
|
||||||
cd vendor/gx/ipfs
|
cd vendor/gx/ipfs
|
||||||
$GOPATH/bin/gx get $rev
|
$GOPATH/bin/gx get $rev
|
||||||
|
Reference in New Issue
Block a user