mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
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:
parent
eb77f56d8a
commit
52105e6083
@ -47,7 +47,7 @@ if %WinOS%==64BIT (
|
||||
mkdir %wrapper_dir%
|
||||
|
||||
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 [31mERROR: Starting prysm requires an internet connection. [0m && exit /b 1)
|
||||
echo [37mLatest prysm release is %prysm_version%.[0m
|
||||
IF defined USE_PRYSM_VERSION (
|
||||
echo [33mdetected variable USE_PRYSM_VERSION=%USE_PRYSM_VERSION%[0m
|
||||
|
2
prysm.sh
2
prysm.sh
@ -107,7 +107,7 @@ function get_prysm_version() {
|
||||
else
|
||||
# Find the latest Prysm version available for download.
|
||||
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
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user