1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-29 18:45:23 +00:00

Merge pull request #97 from chenxiaoqino/patch-1

Update install process: hint before downloading
This commit is contained in:
Darien Raymond 2016-02-28 15:32:38 +01:00
commit 7a7cd95a54

View File

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