From b0ffc5c3c52326107dc226d8a7dda9f44d069f5c Mon Sep 17 00:00:00 2001 From: Manoj Dayaram Date: Thu, 20 Sep 2012 15:08:18 -0700 Subject: [PATCH] Making version var local so as to not conflict with any global version vars when executing gvm use --- scripts/env/use | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/env/use b/scripts/env/use index da14059..7b1b07d 100644 --- a/scripts/env/use +++ b/scripts/env/use @@ -2,7 +2,7 @@ function gvm_use() { [[ "$1" != "" ]] || display_error "Please specifiy the version" || return 1 - VERSION=$1 + local VERSION=$1 fuzzy_match=`$LS_PATH $GVM_ROOT/gos | $SORT_PATH | $GREP_PATH "$1" | $HEAD_PATH -n 1 | $GREP_PATH "$1"` if [[ "$?" != "0" ]]; then GO_CACHE_PATH=$GVM_ROOT/archive/go