Skip to content

Commit cbaf657

Browse files
authored
Merge pull request #107 from boypt/patch-1
fix: 如果执行安装前存在/etc/v2ray目录会导致git clone 出错
2 parents 141a0fb + 9a71576 commit cbaf657

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,11 +752,13 @@ install_v2ray() {
752752
mkdir -p /etc/v2ray/233boy/v2ray
753753
cp -rf $(pwd)/* /etc/v2ray/233boy/v2ray
754754
else
755+
pushd /tmp
755756
if [[ $_test ]]; then
756757
git clone https://github.com/233boy/v2ray -b test /etc/v2ray/233boy/v2ray
757758
else
758759
git clone https://github.com/233boy/v2ray /etc/v2ray/233boy/v2ray
759760
fi
761+
popd
760762

761763
fi
762764

0 commit comments

Comments
 (0)