From d7f0b47e17294782ba0e4c6b9bbeeaaee2932425 Mon Sep 17 00:00:00 2001 From: Joshua Bussdieker Date: Thu, 1 Mar 2012 22:05:42 -0800 Subject: [PATCH] Fix test mode --- scripts/install | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 9238a9e..da0ff10 100755 --- a/scripts/install +++ b/scripts/install @@ -1,14 +1,8 @@ #!/bin/bash . $GVM_ROOT/scripts/functions -if [ "$1" == "--test" ]; then - test=true -fi download_source() { GO_CACHE_PATH=$GVM_ROOT/archive/go - if [ "$test" != "true" ]; then - GO_SOURCE_URL=https://go.googlecode.com/hg/ - fi [ -d $GO_CACHE_PATH ] && return echo "Downloading Go source... $GO_SOURCE_URL" hg clone $GO_SOURCE_URL $GO_CACHE_PATH >> $GVM_ROOT/logs/go-download.log 2>&1 || @@ -115,6 +109,11 @@ install_goprotobuf() { main() { VERSION=$1 + if [ "$2" != "" ]; then + GO_SOURCE_URL=$2 + else + GO_SOURCE_URL=https://go.googlecode.com/hg/ + fi trap 'display_error "Canceled!"' INT # GREEN! tput sgr0