From f55d22e8cf9531c0636fc378ad60374e58c99a32 Mon Sep 17 00:00:00 2001 From: v2ray Date: Sun, 21 Feb 2016 18:12:42 +0100 Subject: [PATCH] echo download link --- release/install-release.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/release/install-release.sh b/release/install-release.sh index 0d27160ac..27840d7de 100755 --- a/release/install-release.sh +++ b/release/install-release.sh @@ -84,9 +84,11 @@ install_component "curl" install_component "unzip" if [ -n "${PROXY}" ]; then - curl -x ${PROXY} -L -o "/tmp/v2ray/v2ray.zip" ${DOWNLOAD_LINK} + curl -x ${PROXY} -L -H "Cache-Control: no-cache" -o "/tmp/v2ray/v2ray.zip" ${DOWNLOAD_LINK} + echo "Downloading ${DOWNLOAD_LINK} via proxy ${PROXY}." else - curl -L -o "/tmp/v2ray/v2ray.zip" ${DOWNLOAD_LINK} + curl -L -H "Cache-Control: no-cache" -o "/tmp/v2ray/v2ray.zip" ${DOWNLOAD_LINK} + echo "Downloading ${DOWNLOAD_LINK} directly." fi unzip "/tmp/v2ray/v2ray.zip" -d "/tmp/v2ray/"