File tree 2 files changed +42
-0
lines changed
RoyalCode.EnterprisePatterns
2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ @ echo off
2
+ setlocal enabledelayedexpansion
3
+
4
+ :: Starts the scan from the folder where the script is running
5
+ for /r %%d in (*.csproj) do (
6
+ set " folder = %%~dpd "
7
+
8
+ :: Check if the 'bin' folder exists and delete it
9
+ if exist " !folder! bin" (
10
+ echo Deleting the bin folder in: !folder!
11
+ rmdir /s /q " !folder! bin"
12
+ )
13
+
14
+ :: Check if the 'obj' folder exists and delete it
15
+ if exist " !folder! obj" (
16
+ echo Deleting the obj folder in: !folder!
17
+ rmdir /s /q " !folder! obj"
18
+ )
19
+ )
20
+
21
+ echo Completed.
22
+ pause
Original file line number Diff line number Diff line change
1
+ @ echo off
2
+
3
+ echo Current folder: %cd%
4
+
5
+ git status --porcelain > nul
6
+ if errorlevel 1 (
7
+ echo There are no changes to the repository.
8
+ pause
9
+ exit /b 0
10
+ )
11
+
12
+ set /p " commit_message = Enter the commit message: "
13
+
14
+ git add --all
15
+ git commit -m " %commit_message% "
16
+ git push
17
+
18
+ echo Git operations completed successfully.
19
+ echo --------------------------------------
20
+ pause
You can’t perform that action at this time.
0 commit comments