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:
Jeff Widmer 2021-01-04 18:27:38 -05:00 committed by GitHub
parent f6af79f415
commit 0e5da504f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 Beacon chain is up to date.
) else (
echo Downloading beacon chain %prysm_version% to %BEACON_CHAIN_REAL% %reason%
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 Validator is up to date.
) else (
echo Downloading validator %prysm_version% to %VALIDATOR_REAL% %reason%
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 Slasher is up to date.
) else (
echo Downloading slasher %prysm_version% to %SLASHER_REAL% %reason%
curl -L https://prysmaticlabs.com/releases/slasher-%prysm_version%-%system%-%arch% -o %SLASHER_REAL%