Update install-release.sh
parent
24fa3c6750
commit
f1d638843b
|
@ -302,7 +302,7 @@ download_v2ray() {
|
||||||
"mkdir" -p "$TMP_DIRECTORY"
|
"mkdir" -p "$TMP_DIRECTORY"
|
||||||
DOWNLOAD_LINK="https://github.com/v2fly/v2ray-core/releases/download/$RELEASE_VERSION/v2ray-linux-$MACHINE.zip"
|
DOWNLOAD_LINK="https://github.com/v2fly/v2ray-core/releases/download/$RELEASE_VERSION/v2ray-linux-$MACHINE.zip"
|
||||||
echo "Downloading V2Ray archive: $DOWNLOAD_LINK"
|
echo "Downloading V2Ray archive: $DOWNLOAD_LINK"
|
||||||
if ! "curl" ${PROXY} -sSL -H "Accept: application/vnd.github.v3+json" -L -H 'Cache-Control: no-cache' -o "$ZIP_FILE" "$DOWNLOAD_LINK"; then
|
if ! "curl" ${PROXY} -sSLR -H "Accept: application/vnd.github.v3+json" -H 'Cache-Control: no-cache' -o "$ZIP_FILE" "$DOWNLOAD_LINK"; then
|
||||||
echo 'error: Download failed! Please check your network or try again.'
|
echo 'error: Download failed! Please check your network or try again.'
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue