소스 검색

Update install process: hint before downloading

Hint downloading address before installing, in case the download is blocked and the user may manually overwrite the installation process. (Otherwise, the "downloading" hint will never appear when download is blocked.)
chenxiaoqino 9 년 전
부모
커밋
ae55c9de3b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      release/install-release.sh

+ 2 - 2
release/install-release.sh

@@ -84,11 +84,11 @@ install_component "curl"
 install_component "unzip"
 
 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}."
+  curl -x ${PROXY} -L -H "Cache-Control: no-cache" -o "/tmp/v2ray/v2ray.zip" ${DOWNLOAD_LINK}
 else
-  curl -L -H "Cache-Control: no-cache" -o "/tmp/v2ray/v2ray.zip" ${DOWNLOAD_LINK}
   echo "Downloading ${DOWNLOAD_LINK} directly."
+  curl -L -H "Cache-Control: no-cache" -o "/tmp/v2ray/v2ray.zip" ${DOWNLOAD_LINK}
 fi
 unzip "/tmp/v2ray/v2ray.zip" -d "/tmp/v2ray/"