mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
Fix for prysm.bat issue 'Validator' is not recognized as an internal or external command (#8097)
Fix for the issue where if either the beacon, validator, or slasher are already up to date, then the message: "'Validator/Beacon/Slasher' is not recognized as an internal or external command, operable program or batch file." The issue was that the message "Validator/Beacon/Slasher is up to date." is not echoed to the console but it is trying to be run as a command. Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: Victor Farazdagi <simple.square@gmail.com> Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
This commit is contained in:
parent
f6af79f415
commit
0e5da504f4
@ -64,7 +64,7 @@ set SLASHER_REAL=%wrapper_dir%\slasher-%prysm_version%-%system%-%arch%
|
||||
|
||||
if [%1]==[beacon-chain] (
|
||||
if exist %BEACON_CHAIN_REAL% (
|
||||
Beacon chain is up to date.
|
||||
echo [32mBeacon chain is up to date.[0m
|
||||
) else (
|
||||
echo [35mDownloading beacon chain %prysm_version% to %BEACON_CHAIN_REAL% %reason%[0m
|
||||
curl -L https://prysmaticlabs.com/releases/beacon-chain-%prysm_version%-%system%-%arch% -o %BEACON_CHAIN_REAL%
|
||||
@ -75,7 +75,7 @@ if [%1]==[beacon-chain] (
|
||||
|
||||
if [%1]==[validator] (
|
||||
if exist %VALIDATOR_REAL% (
|
||||
Validator is up to date.
|
||||
echo [32mValidator is up to date.[0m
|
||||
) else (
|
||||
echo [35mDownloading validator %prysm_version% to %VALIDATOR_REAL% %reason%[0m
|
||||
curl -L https://prysmaticlabs.com/releases/validator-%prysm_version%-%system%-%arch% -o %VALIDATOR_REAL%
|
||||
@ -86,7 +86,7 @@ if [%1]==[validator] (
|
||||
|
||||
if [%1]==[slasher] (
|
||||
if exist %SLASHER_REAL% (
|
||||
Slasher is up to date.
|
||||
echo [32mSlasher is up to date.[0m
|
||||
) else (
|
||||
echo [35mDownloading slasher %prysm_version% to %SLASHER_REAL% %reason%[0m
|
||||
curl -L https://prysmaticlabs.com/releases/slasher-%prysm_version%-%system%-%arch% -o %SLASHER_REAL%
|
||||
|
Loading…
Reference in New Issue
Block a user