mirror of
https://github.com/wahyd4/gvm.git
synced 2026-08-10 05:16:13 +10:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d108d7d500 | ||
|
|
11f9d95444 | ||
|
|
557ddf9e4c | ||
|
|
8ffc7cc61e |
@@ -23,7 +23,7 @@ Installing
|
||||
|
||||
To install:
|
||||
|
||||
bash < <(curl -s -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
|
||||
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
|
||||
|
||||
Installing Go
|
||||
=============
|
||||
|
||||
@@ -26,7 +26,7 @@ Installing
|
||||
|
||||
To install:
|
||||
|
||||
bash < <(curl -s -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
|
||||
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
|
||||
|
||||
Installing Go
|
||||
=============
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
[ -n "$GVM_DEBUG" ] && {
|
||||
set -x
|
||||
}
|
||||
|
||||
if [ -z "$GVM_ROOT" ]; then
|
||||
tput sgr0
|
||||
tput setaf 1
|
||||
|
||||
@@ -59,7 +59,7 @@ SRC_REPO=${SRC_REPO:-https://github.com/moovweb/gvm.git}
|
||||
|
||||
GIT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
|
||||
|
||||
if [[ -z "$GIT_ROOT" ]]
|
||||
if [[ -z "$GIT_ROOT" || "$(basename "$GIT_ROOT")" != "gvm" ]]
|
||||
then
|
||||
echo "Cloning from $SRC_REPO to $GVM_DEST/$GVM_NAME"
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
source $GVM_ROOT/scripts/gvm
|
||||
gvm install 1.2 #status=0
|
||||
gvm list #status=0; match=/1\.2/
|
||||
gvm install go1.2 #status=0
|
||||
gvm list #status=0; match=/go1\.2/
|
||||
gvm use 1.2 #status=0
|
||||
go version #status=0; match=/1\.2/
|
||||
gvm use go1.2 #status=0
|
||||
go version #status=0; match=/go1\.2/
|
||||
Reference in New Issue
Block a user