From 9000338db2641e19b46e56e74f0ca9670125a447 Mon Sep 17 00:00:00 2001 From: Dct Mei Date: Wed, 25 Mar 2020 21:51:16 +0800 Subject: [PATCH] Add missing content --- install-release.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install-release.sh b/install-release.sh index 0bc96d8..69b314d 100644 --- a/install-release.sh +++ b/install-release.sh @@ -348,6 +348,10 @@ installStartupServiceFile() { if [[ ! -f '/etc/systemd/system/v2ray.service' ]]; then mkdir "${TMP_DIRECTORY}systemd/system/" curl ${PROXY} -o "${TMP_DIRECTORY}systemd/system/v2ray.service" https://raw.githubusercontent.workers.dev/v2fly/fhs-install-v2ray/master/systemd/system/v2ray.service -s + if [[ "$?" -ne '0' ]]; then + echo 'error: Failed to start service file download! Please check your network or try again.' + exit 1 + fi curl ${PROXY} -o "${TMP_DIRECTORY}systemd/system/v2ray@.service" https://raw.githubusercontent.workers.dev/v2fly/fhs-install-v2ray/master/systemd/system/v2ray@.service -s if [[ "$?" -ne '0' ]]; then echo 'error: Failed to start service file download! Please check your network or try again.'