Explorar el Código

go get without https prefix

Bob Mottram hace 9 años
padre
commit
e19bc976a5
Se han modificado 1 ficheros con 6 adiciones y 3 borrados
  1. 6
    3
      src/freedombone

+ 6
- 3
src/freedombone Ver fichero

@@ -2294,7 +2294,8 @@ function mesh_cjdns_tools {
2294 2294
     fi
2295 2295
     export GOPATH=$HOME/projects/go
2296 2296
     export PATH=$PATH:$HOME/projects/go/bin
2297
-    go get $CJDCMD_REPO
2297
+	CJDCMD_REPO2=$(echo "$CJDCMD_REPO" | sed 's|https://||g')
2298
+    go get $CJDCMD_REPO2
2298 2299
     if [ ! -f $HOME/projects/go/bin/cjdcmd ]; then
2299 2300
         echo $'cjdcmd was not compiled. Check your golang installation'
2300 2301
         exit 7439
@@ -6649,7 +6650,8 @@ function install_gogs {
6649 6650
     if [ ! -d $GOPATH ]; then
6650 6651
         mkdir -p $GOPATH
6651 6652
     fi
6652
-    go get -u $GO_PACKAGE_MANAGER_REPO
6653
+	GO_PACKAGE_MANAGER_REPO2=$(echo "$GO_PACKAGE_MANAGER_REPO" | sed 's|https://||g')
6654
+    go get -u $GO_PACKAGE_MANAGER_REPO2
6653 6655
     if [ ! "$?" = "0" ]; then
6654 6656
         exit 479832
6655 6657
     fi
@@ -9613,7 +9615,8 @@ function install_ipfs {
9613 9615
         chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.bashrc
9614 9616
     fi
9615 9617
 
9616
-    go get -u ${IPFS_GO_REPO}/cmd/ipfs
9618
+	IPFS_GO_REPO2=$(echo "$IPFS_GO_REPO" | sed 's|https://||g')
9619
+    go get -u ${IPFS_GO_REPO2}/cmd/ipfs
9617 9620
     if [ ! "$?" = "0" ]; then
9618 9621
         exit 8242
9619 9622
     fi