Skip to content

Commit d55ace7

Browse files
fix: make Windows destroy.bat call stop and clear before deletion (fixes #342)
1 parent 0467ce5 commit d55ace7

1 file changed

Lines changed: 25 additions & 3 deletions

File tree

destroy.bat

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1-
@echo off
2-
if exist "%1\stop.bat" (rmdir /s/q %1) else (echo "%1 is not a concore study")
3-
1+
@echo off
2+
3+
if not exist "%1" (
4+
echo "%1 does not exist"
5+
exit /b 1
6+
)
7+
8+
if not exist "%1\stop.bat" (
9+
echo "%1 is not a concore study"
10+
exit /b 1
11+
)
12+
13+
echo Stopping study...
14+
call "%1\stop.bat"
15+
16+
if exist "%1\clear.bat" (
17+
echo Clearing study...
18+
call "%1\clear.bat"
19+
)
20+
21+
echo Removing study directory...
22+
rmdir /s /q "%1"
23+
24+
echo Done.
25+

0 commit comments

Comments
 (0)