Update install-release.sh

判断V2Ray是否运行时grep命令添加全词匹配选项
pull/151/head
oxape 2020-09-30 10:52:05 +08:00 committed by GitHub
parent 772b160874
commit 5d003018a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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'