Refresh environment

This commit is contained in:
2025-01-19 17:56:58 +01:00
parent 7b871edada
commit 0c93030488
3 changed files with 137 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ echo If not yet installed, Git and Go will be installed via Winget.
echo.
call env.cmd
set REFRESHENV=0
where winget.exe >nul 2>&1
if %errorlevel% NEQ 0 (
@@ -18,6 +19,7 @@ where go.exe >nul 2>&1
if %errorlevel% NEQ 0 (
echo Installing Go with Winget
winget install GoLang.Go >nul 2>&1
set REFRESHENV=1
) else (
echo Go executable found
)
@@ -26,10 +28,13 @@ where git.exe >nul 2>&1
if %errorlevel% NEQ 0 (
echo Installing Git with Winget
winget install Git.Git >nul 2>&1
set REFRESHENV=1
) else (
echo Git executable found
)
if %REFRESHENV% EQU 1 call .\RefreshEnv.cmd
echo Cloning Beszel repository
git clone https://github.com/henrygd/beszel.git >nul 2>&1
if %errorlevel% NEQ 0 (