suppress `grep` output

pull/153/head
IceCodeNew 2020-10-02 19:12:25 +08:00 committed by GitHub
parent 399b4a3ea7
commit ee669e66d4
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 -w 'v2ray')" ]]; then
if [[ -n "$(systemctl list-unit-files | grep -qw 'v2ray')" ]]; then
if [[ -n "$(pidof v2ray)" ]]; then
stop_v2ray
V2RAY_RUNNING='1'