4 Commits
Author SHA1 Message Date
Joshua Bussdieker d108d7d500 Merge pull request #70 from alouche/master
Display curl error message, add debug option + agnostic git gvm-installer
2014-05-23 12:01:11 -07:00
Ali Abbas 11f9d95444 add environment variable to enable global bash debug mode 2014-05-19 21:48:14 +02:00
Ali Abbas 557ddf9e4c display curl error message on failure (i.e: timeout, dns lookup etc.) 2014-05-18 23:22:40 +02:00
Ali Abbas 8ffc7cc61e in case gvm-installer within a git repository other than the gvm repo itself 2014-05-18 23:18:26 +02:00
5 changed files with 7 additions and 12 deletions
+1 -1
View File
@@ -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
=============
+1 -1
View File
@@ -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
=============
+4
View File
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
[ -n "$GVM_DEBUG" ] && {
set -x
}
if [ -z "$GVM_ROOT" ]; then
tput sgr0
tput setaf 1
+1 -1
View File
@@ -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"
-9
View File
@@ -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/