From de163ba487d65195f9751c33c360697b5e99bf59 Mon Sep 17 00:00:00 2001 From: sunshineplan Date: Thu, 12 Apr 2018 15:46:52 +0800 Subject: [PATCH] Update install-release.sh --- release/install-release.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/release/install-release.sh b/release/install-release.sh index c569a57e..872d4f00 100755 --- a/release/install-release.sh +++ b/release/install-release.sh @@ -373,9 +373,9 @@ main(){ exit else colorEcho ${BLUE} "Installing V2Ray ${NEW_VER} on ${ARCH}" - downloadV2Ray - installSoftware unzip - extract ${ZIPFILE} + downloadV2Ray || return $? + installSoftware unzip || return $? + extract ${ZIPFILE} || return $? fi fi if pgrep "v2ray" > /dev/null ; then @@ -386,7 +386,7 @@ main(){ installInitScript || return $? if [[ ${V2RAY_RUNNING} -eq 1 ]];then colorEcho ${BLUE} "Restarting V2Ray service." - startV2ray || return $? + startV2ray fi colorEcho ${GREEN} "V2Ray ${NEW_VER} is installed." rm -rf /tmp/v2ray