go get without https prefix
This commit is contained in:
parent
648c27b2d3
commit
e19bc976a5
|
@ -2294,7 +2294,8 @@ function mesh_cjdns_tools {
|
||||||
fi
|
fi
|
||||||
export GOPATH=$HOME/projects/go
|
export GOPATH=$HOME/projects/go
|
||||||
export PATH=$PATH:$HOME/projects/go/bin
|
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
|
if [ ! -f $HOME/projects/go/bin/cjdcmd ]; then
|
||||||
echo $'cjdcmd was not compiled. Check your golang installation'
|
echo $'cjdcmd was not compiled. Check your golang installation'
|
||||||
exit 7439
|
exit 7439
|
||||||
|
@ -6649,7 +6650,8 @@ function install_gogs {
|
||||||
if [ ! -d $GOPATH ]; then
|
if [ ! -d $GOPATH ]; then
|
||||||
mkdir -p $GOPATH
|
mkdir -p $GOPATH
|
||||||
fi
|
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
|
if [ ! "$?" = "0" ]; then
|
||||||
exit 479832
|
exit 479832
|
||||||
fi
|
fi
|
||||||
|
@ -9613,7 +9615,8 @@ function install_ipfs {
|
||||||
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.bashrc
|
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.bashrc
|
||||||
fi
|
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
|
if [ ! "$?" = "0" ]; then
|
||||||
exit 8242
|
exit 8242
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue