From 079ace63ec1462bd8402a23ce29c67323c9a5e9f Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 21 Jan 2025 10:14:05 -0800 Subject: [PATCH] Installer: minor change --- start_windows.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start_windows.bat b/start_windows.bat index 960cfdb7..2e42d6fa 100755 --- a/start_windows.bat +++ b/start_windows.bat @@ -41,12 +41,12 @@ if "%conda_exists%" == "F" ( mkdir "%INSTALL_DIR%" call curl -Lk "%MINICONDA_DOWNLOAD_URL%" > "%INSTALL_DIR%\miniconda_installer.exe" || ( echo. && echo Miniconda failed to download. && goto end ) - :: Try CertUtil first + @rem Try CertUtil first for /f %%a in ('CertUtil -hashfile "%INSTALL_DIR%\miniconda_installer.exe" SHA256 ^| find /i /v " " ^| find /i "%MINICONDA_CHECKSUM%"') do ( set "output=%%a" ) - :: If CertUtil fails, try PowerShell + @rem If CertUtil fails, try PowerShell if not defined output ( for /f %%a in ('powershell -Command "if((Get-FileHash \"%INSTALL_DIR%\miniconda_installer.exe\" -Algorithm SHA256).Hash -eq ''%MINICONDA_CHECKSUM%''){echo true}"') do ( set "output=%%a"