Updated old shell scripts

This commit is contained in:
raccoon
2026-03-02 12:58:13 +05:00
parent 3a7d2a0a07
commit e7a992ee38
2 changed files with 12 additions and 25 deletions

View File

@@ -2,13 +2,17 @@
TITLE Clean up Unity Project repo
SETLOCAL EnableDelayedExpansion
CALL :cleanup --dry-run || GOTO die
CD "%~dp0"
git rev-parse --is-inside-work-tree >NUL || GOTO die
git clean -dfX --dry-run "%~dp0." || GOTO die
ECHO.
CHOICE /M "Execute"
IF !ERRORLEVEL! NEQ 1 (
ECHO Aborting cleanup...
) ELSE (
CALL :cleanup || GOTO die
git clean -dfX "%~dp0." || GOTO die
ECHO Done.
)
@@ -19,8 +23,3 @@ EXIT /B 0
:die
PAUSE
EXIT /B %ERRORLEVEL%
:cleanup
git clean -dfX %* "%~dp0." || EXIT /B
EXIT /B 0