Recommend Users Blocked By Antivirus a Way to Curl Prysm.sh (#6019)

* recommend no revoke
* Merge refs/heads/master into antivirus
This commit is contained in:
Raul Jordan 2020-05-28 05:00:19 -05:00 committed by GitHub
parent 979c0074c7
commit 9a2c684628
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ if %WinOS%==64BIT (
mkdir %wrapper_dir% mkdir %wrapper_dir%
REM get_prysm_version - Find the latest Prysm version available for download. REM get_prysm_version - Find the latest Prysm version available for download.
(for /f %%i in ('curl -f -s https://prysmaticlabs.com/releases/latest') do set prysm_version=%%i) || (echo ERROR: Starting prysm requires an internet connection.  && exit /b 1) (for /f %%i in ('curl -f -s https://prysmaticlabs.com/releases/latest') do set prysm_version=%%i) || (echo ERROR: Starting prysm requires an internet connection. If you are being blocked by your antivirus, you can re-run with --ssl-no-revoke  && exit /b 1)
echo Latest prysm release is %prysm_version%. echo Latest prysm release is %prysm_version%.
IF defined USE_PRYSM_VERSION ( IF defined USE_PRYSM_VERSION (
echo detected variable USE_PRYSM_VERSION=%USE_PRYSM_VERSION% echo detected variable USE_PRYSM_VERSION=%USE_PRYSM_VERSION%

View File

@ -107,7 +107,7 @@ function get_prysm_version() {
else else
# Find the latest Prysm version available for download. # Find the latest Prysm version available for download.
readonly reason="automatically selected latest available version" readonly reason="automatically selected latest available version"
prysm_version=$(curl -f -s https://prysmaticlabs.com/releases/latest) || (color "31" "Starting prysm requires an internet connection." && exit 1) prysm_version=$(curl -f -s https://prysmaticlabs.com/releases/latest) || (color "31" "Starting prysm requires an internet connection. If you are being blocked by your antivirus, you can re-run with --ssl-no-revoke" && exit 1)
readonly prysm_version readonly prysm_version
fi fi
} }