From 8711429d48bd7b9b9a6e400b721018535d356bbc Mon Sep 17 00:00:00 2001 From: Dct Mei Date: Thu, 30 Apr 2020 09:56:05 +0800 Subject: [PATCH] style: Remove the # parameter of the bad experience of cURL When using this parameter, multiple progress bars are prone to appear. --- install-release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-release.sh b/install-release.sh index 68759f4..8f8cbaf 100644 --- a/install-release.sh +++ b/install-release.sh @@ -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