Selaa lähdekoodia

Don't create directory

Bob Mottram 8 vuotta sitten
vanhempi
commit
104519024c
No account linked to committer's email
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4
    4
      src/freedombone

+ 4
- 4
src/freedombone Näytä tiedosto

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