@@ -206,7 +206,7 @@ function cleanFiles() {
206206 popd > /dev/null
207207}
208208
209- clear
209+ # clear
210210
211211# Output usage =================================================================
212212
@@ -217,15 +217,15 @@ if [ "$1" = "" ]; then
217217 writeLine
218218 writeLine ' where option is one of:'
219219 writeLine
220- writeLine ' assets - removes assets to force re-copy of downloads'
221- writeLine ' build - cleans build output (bin / obj)'
222- writeLine ' data - removes user data stored by modules'
223- writeLine ' downloads - removes downloads to force re-download'
224- writeLine ' install - removes current OS installation stuff (PIPs, downloads etc)'
225- writeLine ' install-all - removes installation stuff for all platforms'
226- writeLine ' libraries - removes installed libraries (PIPs), current OS'
227- writeLine ' libraries-all - removes installed libraries (PIPs), all OSs'
228- writeLine ' all - removes build and installation stuff for all platforms'
220+ writeLine ' assets - removes assets to force re-copy of downloads'
221+ writeLine ' build - cleans build output (bin / obj)'
222+ writeLine ' data - removes user data stored by modules'
223+ writeLine ' download-cache - removes downloads to force re-download'
224+ writeLine ' install - removes current OS installation stuff (PIPs, downloads etc)'
225+ writeLine ' install-all - removes installation stuff for all platforms'
226+ writeLine ' libraries - removes installed libraries (PIPs), current OS'
227+ writeLine ' libraries-all - removes installed libraries (PIPs), all OSs'
228+ writeLine ' all - removes build and installation stuff for all platforms'
229229
230230 if [ " $os " = " macos" ]; then
231231 writeLine
@@ -399,17 +399,17 @@ if [ "$cleanDownloadCache" = true ]; then
399399 writeLine " Cleaning download cache" " White" " Blue" $lineWidth
400400 writeLine
401401
402+ # remove non module or model folders
402403 for path in ${rootDir} /downloads/* ; do
403404 if [ -d " $path " ] && [ " $path " != " ${rootDir} /downloads/modules" ] && [ " $path " != " ${rootDir} /downloads/models" ]; then
404405 removeDir " ${path} "
405406 fi
406407 done
407408
408- for path in ${rootDir} /downloads/modules/* ; do
409- if [ -d " $path " ] && [ " $path " != " ${rootDir} /downloads/modules/readme.txt" ]; then
410- removeFile " ${path} "
411- fi
412- done
409+ # clean out module folders
410+ removeDir " ${rootDir} /downloads/modules/"
411+
412+ # clean out models files
413413 for path in ${rootDir} /downloads/models/* ; do
414414 if [ -d " $path " ] && [ " $path " != " ${rootDir} /downloads/models/models.json" ]; then
415415 removeFile " ${path} "
0 commit comments