Updated shell scripts again

This commit is contained in:
raccoon
2026-07-25 02:21:16 +05:00
parent 50947a0def
commit d0fac4ebfb
4 changed files with 26 additions and 7 deletions

View File

@@ -5,13 +5,14 @@ SETLOCAL
CD "%~dp0"
git rev-parse --is-inside-work-tree >NUL || GOTO die
ECHO The following files were changed and will be reverted:
ECHO.
ECHO *** WARNING: The following files were changed and will be reverted:
git diff --name-only HEAD
ECHO.
CHOICE /M "Execute"
IF %ERRORLEVEL% NEQ 1 (
ECHO Aborting restore...
ECHO Aborting discard...
) ELSE (
git restore "%~dp0." || GOTO die
ECHO Done.