From bb2f6d006e94fa92af5b798bf4569990f17532f8 Mon Sep 17 00:00:00 2001 From: sunshineplan Date: Thu, 12 Apr 2018 13:17:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=90=AF=E5=8A=A8=E5=92=8C?= =?UTF-8?q?=E5=81=9C=E6=AD=A2=E6=9C=8D=E5=8A=A1=E5=A4=B1=E8=B4=A5=E7=9A=84?= =?UTF-8?q?=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- release/install-release.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/release/install-release.sh b/release/install-release.sh index d67ed56b3..1423238af 100755 --- a/release/install-release.sh +++ b/release/install-release.sh @@ -186,7 +186,10 @@ stopV2ray(){ elif [[ -n "${SERVICE_CMD}" ]] || [[ -f "/etc/init.d/v2ray" ]]; then ${SERVICE_CMD} v2ray stop fi - return 0 + if [[ $? -ne 0 ]]; then + colorEcho ${RED} "Failed to shutdown V2Ray service." + return 2 + fi } startV2ray(){ @@ -200,7 +203,10 @@ startV2ray(){ elif [ -n "${SERVICE_CMD}" ] && [ -f "/etc/init.d/v2ray" ]; then ${SERVICE_CMD} v2ray start fi - return 0 + if [[ $? -ne 0 ]]; then + colorEcho ${RED} "Failed to start V2Ray service." + return 2 + fi } copyFile() {