Explorar el Código

Don't create directory

Bob Mottram hace 9 años
padre
commit
104519024c
Ninguna cuenta está vinculada al correo electrónico del colaborador
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4
    4
      src/freedombone

+ 4
- 4
src/freedombone Ver fichero

6377
 		adduser --disabled-login --gecos 'Gogs' git
6377
 		adduser --disabled-login --gecos 'Gogs' git
6378
 	fi
6378
 	fi
6379
 
6379
 
6380
-	if [ ! -d $GVM_ROOT ]; then
6381
-		mkdir -p $GVM_ROOT
6382
-	fi
6383
-
6384
 	# TODO: this script is all over the place
6380
 	# TODO: this script is all over the place
6385
 	# and contains hardcoded github. See if you can do better
6381
 	# and contains hardcoded github. See if you can do better
6386
 	./binscripts/gvm-installer master /home/git
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
 	[[ -s "$GVM_ROOT/scripts/gvm" ]] && source "$GVM_ROOT/scripts/gvm"
6389
 	[[ -s "$GVM_ROOT/scripts/gvm" ]] && source "$GVM_ROOT/scripts/gvm"
6390
 	if [ ! -f $GVM_ROOT/bin/gvm ]; then
6390
 	if [ ! -f $GVM_ROOT/bin/gvm ]; then