Skip to content

Commit f572898

Browse files
author
Chris Maunder
committed
Corrected cleam
1 parent 05978af commit f572898

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

devops/install/clean.bat

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
cls
1010
setlocal enabledelayedexpansion
1111

12+
start ..\utils\stop_all.bat
13+
1214
set useColor=true
1315
set doDebug=false
1416
set lineWidth=70
@@ -111,6 +113,17 @@ if /i "!cleanInstallAll!" == "true" (
111113
set cleanUserData=true
112114
)
113115

116+
echo clean assets = %cleanAssets%
117+
echo clean build = %cleanBuild%
118+
echo clean data = %cleanUserData%
119+
echo clean download-cache = %cleanDownloadCache%
120+
echo clean install = %cleanInstallCurrentOS%
121+
echo clean install-all = %cleanInstallAll%
122+
echo clean libraries = %cleanLibraries%
123+
echo clean libraries-all = %cleanLibrariesAll%
124+
echo clean all = %cleanAll%
125+
126+
114127
REM Start cleaning =============================================================
115128

116129
if /i "%cleanAssets%" == "true" (
@@ -210,11 +223,9 @@ if /i "%cleanDownloadCache%" == "true" (
210223
call "!utilsScript!" WriteLine
211224

212225
REM remove non module or model folders
213-
FOR /d %%a IN ("%rootDir%\downloads\*") DO (
226+
FOR /d %%a IN ("%rootDir%\downloads\modules\assets\*") DO (
214227
IF /i NOT "%%~nxa"=="modules" IF /i NOT "%%~nxa"=="models" call :RemoveDir "%%a"
215-
216-
REM clean out module folders
217-
call :RemoveFile "%rootDir%\downloads\modules\"
228+
)
218229

219230
REM clean out models files
220231
FOR %%a IN ("%rootDir%\downloads\models\*") DO (
@@ -246,7 +257,7 @@ if /i "%cleanInstallCurrentOS%" == "true" (
246257
if /i "%cleanInstallAll%" == "true" (
247258

248259
call "!utilsScript!" WriteLine
249-
call "!utilsScript!" WriteLine "Cleaning install for other platforms" "White" "Blue" !lineWidth!
260+
call "!utilsScript!" WriteLine "Cleaning install for all platforms" "White" "Blue" !lineWidth!
250261
call "!utilsScript!" WriteLine
251262

252263
REM Clean shared python installs and venvs

0 commit comments

Comments
 (0)