From b7fda81f629267dbeaf533b46b3cfb399462849d Mon Sep 17 00:00:00 2001 From: xiagw Date: Sun, 20 Sep 2020 00:10:59 +0700 Subject: [PATCH] fix7: line 511,change if condition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -n 取非,初看不容易理解, --- install-release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-release.sh b/install-release.sh index 3be4d75..e6c1739 100644 --- a/install-release.sh +++ b/install-release.sh @@ -508,8 +508,8 @@ main() { fi # Determine if V2Ray is running - if [[ -n "$(systemctl list-unit-files | grep 'v2ray')" ]]; then - if [[ -n "$(pidof v2ray)" ]]; then + if systemctl list-unit-files | grep -q 'v2ray'; then + if pidof v2ray; then stop_v2ray V2RAY_RUNNING='1' fi