Skip to content

Commit

Permalink
优化升级脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Feb 12, 2021
1 parent a1a244a commit 6e758d4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions v2ray.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ while [[ $# > 0 ]];do
;;
-k|--keep)
INSTALL_WAY=1
colorEcho ${BLUE} "keep v2ray profile to update\n"
colorEcho ${BLUE} "keep config to update\n"
;;
--zh)
CHINESE=1
Expand All @@ -74,8 +74,8 @@ done
help(){
echo "bash v2ray.sh [-h|--help] [-k|--keep] [--remove]"
echo " -h, --help Show help"
echo " -k, --keep keep the v2ray config.json to update"
echo " --remove remove v2ray && multi-v2ray"
echo " -k, --keep keep the config.json to update"
echo " --remove remove v2ray,xray && multi-v2ray"
echo " no params to new install"
return 0
}
Expand Down Expand Up @@ -232,11 +232,13 @@ installFinish() {
[[ ${INSTALL_WAY} == 0 ]] && WAY="install" || WAY="update"
colorEcho ${GREEN} "multi-v2ray ${WAY} success!\n"

clear
if [[ ${INSTALL_WAY} == 0 ]]; then
clear

v2ray info
v2ray info

echo -e "please input 'v2ray' command to manage v2ray\n"
echo -e "please input 'v2ray' command to manage v2ray\n"
fi
}


Expand Down

0 comments on commit 6e758d4

Please sign in to comment.