Merge pull request #107 from boypt/patch-1

fix: 如果执行安装前存在/etc/v2ray目录会导致git clone 出错
This commit is contained in:
233boy
2019-01-21 14:51:02 +08:00
committed by GitHub

View File

@@ -752,11 +752,13 @@ install_v2ray() {
mkdir -p /etc/v2ray/233boy/v2ray
cp -rf $(pwd)/* /etc/v2ray/233boy/v2ray
else
pushd /tmp
if [[ $_test ]]; then
git clone https://github.com/233boy/v2ray -b test /etc/v2ray/233boy/v2ray
else
git clone https://github.com/233boy/v2ray /etc/v2ray/233boy/v2ray
fi
popd
fi