1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00

echo download link

This commit is contained in:
v2ray 2016-02-21 18:12:42 +01:00
parent bc0819c05f
commit f55d22e8cf

View File

@ -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/"