Refresh environment
This commit is contained in:
@@ -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 (
|
||||
|
Reference in New Issue
Block a user