From ae55c9de3bae17b2b00af9739f43c74c474001bf Mon Sep 17 00:00:00 2001 From: chenxiaoqino Date: Sun, 28 Feb 2016 22:08:13 +0800 Subject: [PATCH] Update install process: hint before downloading Hint downloading address before installing, in case the download is blocked and the user may manually overwrite the installation process. (Otherwise, the "downloading" hint will never appear when download is blocked.) --- release/install-release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/install-release.sh b/release/install-release.sh index 27840d7d..c202f6a9 100755 --- a/release/install-release.sh +++ b/release/install-release.sh @@ -84,11 +84,11 @@ install_component "curl" install_component "unzip" if [ -n "${PROXY}" ]; then - curl -x ${PROXY} -L -H "Cache-Control: no-cache" -o "/tmp/v2ray/v2ray.zip" ${DOWNLOAD_LINK} echo "Downloading ${DOWNLOAD_LINK} via proxy ${PROXY}." + curl -x ${PROXY} -L -H "Cache-Control: no-cache" -o "/tmp/v2ray/v2ray.zip" ${DOWNLOAD_LINK} else - curl -L -H "Cache-Control: no-cache" -o "/tmp/v2ray/v2ray.zip" ${DOWNLOAD_LINK} echo "Downloading ${DOWNLOAD_LINK} directly." + curl -L -H "Cache-Control: no-cache" -o "/tmp/v2ray/v2ray.zip" ${DOWNLOAD_LINK} fi unzip "/tmp/v2ray/v2ray.zip" -d "/tmp/v2ray/"