Don't create directory

This commit is contained in:
Bob Mottram 2016-05-09 16:50:15 +01:00
parent 6b7060ab0e
commit 104519024c
No known key found for this signature in database
GPG Key ID: BA68F26108DC9F87
1 changed files with 4 additions and 4 deletions

View File

@ -6377,14 +6377,14 @@ function upgrade_golang {
adduser --disabled-login --gecos 'Gogs' git
fi
if [ ! -d $GVM_ROOT ]; then
mkdir -p $GVM_ROOT
fi
# TODO: this script is all over the place
# and contains hardcoded github. See if you can do better
./binscripts/gvm-installer master /home/git
if [ ! -d $GVM_ROOT ]; then
echo $'Unable to install gvm'
exit 83537
fi
[[ -s "$GVM_ROOT/scripts/gvm" ]] && source "$GVM_ROOT/scripts/gvm"
if [ ! -f $GVM_ROOT/bin/gvm ]; then