From ee669e66d4b91abeaf46e5f5f0fe2b3694e4cef0 Mon Sep 17 00:00:00 2001 From: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> Date: Fri, 2 Oct 2020 19:12:25 +0800 Subject: [PATCH] suppress `grep` output --- install-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-release.sh b/install-release.sh index 1e6034c..640ff74 100644 --- a/install-release.sh +++ b/install-release.sh @@ -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'