redirect winget output

This commit is contained in:
2025-01-19 18:05:31 +01:00
parent 581e856e50
commit ae01d517d8

View File

@@ -18,7 +18,7 @@ if %errorlevel% NEQ 0 (
where go.exe >nul 2>&1 where go.exe >nul 2>&1
if %errorlevel% NEQ 0 ( if %errorlevel% NEQ 0 (
echo Installing Go with Winget echo Installing Go with Winget
winget install GoLang.Go --accept-source-agreements --accept-package-agreements winget install GoLang.Go --accept-source-agreements --accept-package-agreements >nul 2>&1
set REFRESHENV=1 set REFRESHENV=1
) else ( ) else (
echo Go executable found echo Go executable found
@@ -27,7 +27,7 @@ if %errorlevel% NEQ 0 (
where git.exe >nul 2>&1 where git.exe >nul 2>&1
if %errorlevel% NEQ 0 ( if %errorlevel% NEQ 0 (
echo Installing Git with Winget echo Installing Git with Winget
winget install Git.Git --accept-source-agreements --accept-package-agreements winget install Git.Git --accept-source-agreements --accept-package-agreements >nul 2>&1
set REFRESHENV=1 set REFRESHENV=1
) else ( ) else (
echo Git executable found echo Git executable found