Create gvm_root directory

This commit is contained in:
Bob Mottram 2016-05-09 16:11:30 +01:00
parent 2c84b8c064
commit 35a44820ab
No known key found for this signature in database
GPG Key ID: BA68F26108DC9F87
1 changed files with 3 additions and 0 deletions

View File

@ -6375,6 +6375,9 @@ function upgrade_golang {
fi
export GVM_ROOT=$GVM_HOME
if [ ! -d $GVM_ROOT ]; then
mkdir -p $GVM_ROOT
fi
[[ -s "$GVM_ROOT/scripts/gvm" ]] && source "$GVM_ROOT/scripts/gvm"
if [ ! -f $GVM_ROOT/bin/gvm ]; then
echo $'gvm was not installed'