浏览代码

Don't create directory

Bob Mottram 9 年前
父节点
当前提交
104519024c
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      src/freedombone

+ 4
- 4
src/freedombone 查看文件

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