Making version var local so as to not conflict with any global version vars when executing gvm use

This commit is contained in:
Manoj Dayaram
2012-09-20 15:08:18 -07:00
parent 71774a44ba
commit b0ffc5c3c5
+1 -1
View File
@@ -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