Fix silent internet error in prysm.sh (#5877)

* Add check for internet in prysm.sh
* Make script fail
* End script early
* Merge branch 'master' into add-internet-check
* Fix order of ops
* Merge branch 'add-internet-check' of github.com:prysmaticlabs/prysm into add-internet-check
* Merge refs/heads/master into add-internet-check
* Merge refs/heads/master into add-internet-check
* Merge refs/heads/master into add-internet-check
* Merge refs/heads/master into add-internet-check
* Merge refs/heads/master into add-internet-check
* Merge refs/heads/master into add-internet-check
* Merge refs/heads/master into add-internet-check
* Add check for internet to bat script
* Merge branch 'add-internet-check' of github.com:prysmaticlabs/prysm into add-internet-check
* Merge refs/heads/master into add-internet-check
This commit is contained in:
Ivan Martinez 2020-05-18 14:30:19 -04:00 committed by GitHub
parent eb77f56d8a
commit 52105e6083
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 -s https://prysmaticlabs.com/releases/latest') do set prysm_version=%%i (for /f %%i in ('curl -f -s https://prysmaticlabs.com/releases/latest%27) do set prysm_version=%%i) || (echo ERROR: Starting prysm requires an internet connection.  && 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 -s https://prysmaticlabs.com/releases/latest) prysm_version=$(curl -f -s https://prysmaticlabs.com/releases/latest) || (color "31" "Starting prysm requires an internet connection." && exit 1)
readonly prysm_version readonly prysm_version
fi fi
} }