From e19bc976a56f5bc2e0d12a732b9a6de1db8a8605 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 27 Jan 2016 15:09:05 +0000 Subject: [PATCH] go get without https prefix --- src/freedombone | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/freedombone b/src/freedombone index f64a5c26..8782d85c 100755 --- a/src/freedombone +++ b/src/freedombone @@ -2294,7 +2294,8 @@ function mesh_cjdns_tools { fi export GOPATH=$HOME/projects/go export PATH=$PATH:$HOME/projects/go/bin - go get $CJDCMD_REPO + CJDCMD_REPO2=$(echo "$CJDCMD_REPO" | sed 's|https://||g') + go get $CJDCMD_REPO2 if [ ! -f $HOME/projects/go/bin/cjdcmd ]; then echo $'cjdcmd was not compiled. Check your golang installation' exit 7439 @@ -6649,7 +6650,8 @@ function install_gogs { if [ ! -d $GOPATH ]; then mkdir -p $GOPATH fi - go get -u $GO_PACKAGE_MANAGER_REPO + GO_PACKAGE_MANAGER_REPO2=$(echo "$GO_PACKAGE_MANAGER_REPO" | sed 's|https://||g') + go get -u $GO_PACKAGE_MANAGER_REPO2 if [ ! "$?" = "0" ]; then exit 479832 fi @@ -9613,7 +9615,8 @@ function install_ipfs { chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.bashrc fi - go get -u ${IPFS_GO_REPO}/cmd/ipfs + IPFS_GO_REPO2=$(echo "$IPFS_GO_REPO" | sed 's|https://||g') + go get -u ${IPFS_GO_REPO2}/cmd/ipfs if [ ! "$?" = "0" ]; then exit 8242 fi