mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
echo download link
This commit is contained in:
parent
bc0819c05f
commit
f55d22e8cf
@ -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/"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user