From c8393caf51c99d0e8e6c8a3b6413e873e115b947 Mon Sep 17 00:00:00 2001 From: BOYPT Date: Sun, 24 Feb 2019 14:45:25 +0800 Subject: [PATCH] online branch --- install.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index c7e0ef6..2a8b757 100644 --- a/install.sh +++ b/install.sh @@ -753,11 +753,7 @@ install_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 + git clone https://github.com/233boy/v2ray -b "$_gitbranch" /etc/v2ray/233boy/v2ray popd fi @@ -1028,10 +1024,12 @@ uninstall() { } args=$1 +_gitbranch=$2 [ -z $1 ] && args="online" case $args in online) #hello world + [[ -z $_gitbranch ]] && _gitbranch="master" ;; local) local_install=true