Remove any existing gvm

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

View File

@ -6370,6 +6370,9 @@ function upgrade_golang {
if [ -d /root/.gvm ]; then
rm -rf /root/.gvm
fi
if [ -d $GVM_ROOT ]; then
rm -rf $GVM_ROOT
fi
sed -i "s|export GVM_ROOT=.*|export GVM_ROOT=$GVM_ROOT|g" ~/.bashrc
if [ ! -d /home/git ]; then