From 0e5da504f46a7f0b56fd360c270d0f2f3b05e07d Mon Sep 17 00:00:00 2001 From: Jeff Widmer Date: Mon, 4 Jan 2021 18:27:38 -0500 Subject: [PATCH] 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 Co-authored-by: Victor Farazdagi Co-authored-by: Preston Van Loon --- prysm.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prysm.bat b/prysm.bat index 61404cad1..4f42f0c99 100644 --- a/prysm.bat +++ b/prysm.bat @@ -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%