mirror of https://github.com/v2ray/v2ray-core
Merge branch 'master' of https://github.com/v2ray/v2ray-core
commit
3ffcb386ad
|
@ -84,11 +84,11 @@ install_component "curl"
|
||||||
install_component "unzip"
|
install_component "unzip"
|
||||||
|
|
||||||
if [ -n "${PROXY}" ]; then
|
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}."
|
echo "Downloading ${DOWNLOAD_LINK} via proxy ${PROXY}."
|
||||||
|
curl -x ${PROXY} -L -H "Cache-Control: no-cache" -o "/tmp/v2ray/v2ray.zip" ${DOWNLOAD_LINK}
|
||||||
else
|
else
|
||||||
curl -L -H "Cache-Control: no-cache" -o "/tmp/v2ray/v2ray.zip" ${DOWNLOAD_LINK}
|
|
||||||
echo "Downloading ${DOWNLOAD_LINK} directly."
|
echo "Downloading ${DOWNLOAD_LINK} directly."
|
||||||
|
curl -L -H "Cache-Control: no-cache" -o "/tmp/v2ray/v2ray.zip" ${DOWNLOAD_LINK}
|
||||||
fi
|
fi
|
||||||
unzip "/tmp/v2ray/v2ray.zip" -d "/tmp/v2ray/"
|
unzip "/tmp/v2ray/v2ray.zip" -d "/tmp/v2ray/"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue