Skip to content

Commit

Permalink
Change the for loop in bat
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <jiallian@amazon.com>
  • Loading branch information
RyanL1997 committed Oct 3, 2023
1 parent d2250eb commit 6b0f5a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/install_demo_configuration.bat
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,13 @@ if "%use_default_admin_password%"=="1" (
) else (
for /f "delims=" %%a in ('type "%ADMIN_PASSWORD_FILE%"') do (
set "ADMIN_PASSWORD=%%a"
goto :breakloop
goto breakloop
)
:breakloop
)
)

:breakloop

if not defined ADMIN_PASSWORD (
echo Unable to find the admin password for the cluster. Please set initialAdminPassword or create a file %ADMIN_PASSWORD_FILE% with a single line that contains the password.
exit /b 1
Expand Down

0 comments on commit 6b0f5a9

Please sign in to comment.