forked from Special-K-s-Flightsim-Bots/DCSServerBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepair.cmd
More file actions
26 lines (26 loc) · 857 Bytes
/
repair.cmd
File metadata and controls
26 lines (26 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@echo off
SET VENV=%USERPROFILE%\.dcssb
echo Cleaning up the virtual environment ...
rmdir /s /q %VENV% >NUL 2>&1
if exist %VENV% (
echo **************************************************
echo WARNING: Could not delete the virtual environment.
echo Please manually delete the .dcssb directory.
echo Directory Path: %VENV%
echo **************************************************
) else (
echo Virtual environment cleaned.
echo A new environment will be created on the next DCSServerBot launch.
)
where git >NUL 2>&1
if errorlevel 1 (
rem Git executable not found, couldn't reset the repository
) else (
echo Resetting the GIT repository ...
git config --global --add safe.directory "%cd%" >NUL 2>&1
git reset --hard >NUL 2>&1
echo Repository reset.
)
echo.
echo Please press any key to continue...
pause > NUL