go get without https prefix

This commit is contained in:
Bob Mottram 2016-01-27 15:09:05 +00:00
parent 648c27b2d3
commit e19bc976a5
1 changed files with 6 additions and 3 deletions

View File

@ -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