suppress `grep` output
parent
399b4a3ea7
commit
ee669e66d4
|
@ -540,7 +540,7 @@ main() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Determine if V2Ray is running
|
# 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
|
if [[ -n "$(pidof v2ray)" ]]; then
|
||||||
stop_v2ray
|
stop_v2ray
|
||||||
V2RAY_RUNNING='1'
|
V2RAY_RUNNING='1'
|
||||||
|
|
Loading…
Reference in New Issue