fix7: line 511,change if condition

-n 取非,初看不容易理解,
pull/118/head
xiagw 2020-09-20 00:10:59 +07:00
parent f0eacd1ca5
commit b7fda81f62
No known key found for this signature in database
GPG Key ID: AA79D99901C34E05
1 changed files with 2 additions and 2 deletions

View File

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