style: Remove the # parameter of the bad experience of cURL
When using this parameter, multiple progress bars are prone to appear.pull/9/head
parent
95020aa14d
commit
8711429d48
|
@ -279,13 +279,13 @@ download_v2ray() {
|
|||
mkdir "$TMP_DIRECTORY"
|
||||
DOWNLOAD_LINK="https://github.com/v2ray/v2ray-core/releases/download/$RELEASE_VERSION/v2ray-linux-$MACHINE.zip"
|
||||
echo "Downloading V2Ray archive: $DOWNLOAD_LINK"
|
||||
curl ${PROXY} -L -H 'Cache-Control: no-cache' -o "$ZIP_FILE" "$DOWNLOAD_LINK" -#
|
||||
curl ${PROXY} -L -H 'Cache-Control: no-cache' -o "$ZIP_FILE" "$DOWNLOAD_LINK"
|
||||
if [[ "$?" -ne '0' ]]; then
|
||||
echo 'error: Download failed! Please check your network or try again.'
|
||||
return 1
|
||||
fi
|
||||
echo "Downloading verification file for V2Ray archive: $DOWNLOAD_LINK.dgst"
|
||||
curl ${PROXY} -L -H 'Cache-Control: no-cache' -o "$ZIP_FILE.dgst" "$DOWNLOAD_LINK.dgst" -#
|
||||
curl ${PROXY} -L -H 'Cache-Control: no-cache' -o "$ZIP_FILE.dgst" "$DOWNLOAD_LINK.dgst"
|
||||
if [[ "$?" -ne '0' ]]; then
|
||||
echo 'error: Download failed! Please check your network or try again.'
|
||||
return 1
|
||||
|
|
Loading…
Reference in New Issue