From 399b4a3ea736327fcdadf74fe35e54c9ca7097ea Mon Sep 17 00:00:00 2001 From: oxape Date: Fri, 2 Oct 2020 17:38:19 +0800 Subject: [PATCH] Update install-release.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 判断V2Ray是否运行时grep命令添加全词匹配选项 --- install-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-release.sh b/install-release.sh index 46e6ec0..1e6034c 100644 --- a/install-release.sh +++ b/install-release.sh @@ -540,7 +540,7 @@ main() { fi # Determine if V2Ray is running - if [[ -n "$(systemctl list-unit-files | grep 'v2ray')" ]]; then + if [[ -n "$(systemctl list-unit-files | grep -w 'v2ray')" ]]; then if [[ -n "$(pidof v2ray)" ]]; then stop_v2ray V2RAY_RUNNING='1'