From 70a311fb50dd4c9076f0af23bcaa2c9600575367 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Fri, 9 Apr 2021 17:12:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E3=80=81=E4=BC=98=E5=8C=96=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/install.sh b/install.sh index 4a56e53..65a0145 100644 --- a/install.sh +++ b/install.sh @@ -216,16 +216,16 @@ showInstallStatus() { if [[ -n "${coreInstallType}" ]]; then if [[ "${coreInstallType}" == 1 ]]; then if [[ -n $(pgrep -f xray/xray) ]]; then - echoContent yellow "核心:Xray-core[运行中]" + echoContent yellow "\n核心:Xray-core[运行中]" else - echoContent yellow "核心:Xray-core[未运行]" + echoContent yellow "\n核心:Xray-core[未运行]" fi elif [[ "${coreInstallType}" == 2 || "${coreInstallType}" == 3 ]]; then if [[ -n $(pgrep -f v2ray/v2ray) ]]; then - echoContent yellow "核心:v2ray-core[运行中]" + echoContent yellow "\n核心:v2ray-core[运行中]" else - echoContent yellow "核心:v2ray-core[未运行]" + echoContent yellow "\n核心:v2ray-core[未运行]" fi fi # 读取协议类型 @@ -255,7 +255,7 @@ showInstallStatus() { fi if echo ${currentInstallProtocolType} | grep -q 4; then - echoContent yellow "Trojan+TCP/WS[TLS]" + echoContent yellow "Trojan+TCP/WS[TLS]\c" fi fi } @@ -732,7 +732,8 @@ handleNginx() { nginx sleep 0.5 if ! ps -ef | grep -v grep | grep -q nginx; then - echoContent red " ---> Nginx启动失败,请检查日志" + echoContent red " ---> Nginx启动失败" + echoContent red " ---> 请手动尝试安装nginx后,再次执行脚本" exit 0 fi elif [[ "$1" == "stop" ]] && [[ -n $(pgrep -f "nginx") ]]; then @@ -3549,9 +3550,9 @@ menu() { echoContent green "作者:mack-a" echoContent green "当前版本:v2.4.11" echoContent green "Github:https://github.com/mack-a/v2ray-agent" - echoContent green "描述:七合一共存脚本" + echoContent green "描述:七合一共存脚本\c" showInstallStatus - echoContent red "==============================================================" + echoContent red "\n==============================================================" if [[ -n "${coreInstallType}" ]]; then echoContent yellow "1.重新安装" else