Skip to content

Commit

Permalink
Merge pull request #3267 from DedunuKarunarathne/fix-startup-bat-tmp-…
Browse files Browse the repository at this point in the history
…delete

Fix all carbon_home files deleted after tmp folder deletion and restart
  • Loading branch information
DedunuKarunarathne authored Mar 7, 2024
2 parents 9bf3174 + bd64153 commit 5fbbe26
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,12 @@ cd %CARBON_HOME%

rem ------------------ Remove tmp folder on startup -----------------------------
set TMP_DIR=%CARBON_HOME%\tmp
cd "%TMP_DIR%"
del *.* /s /q > nul
FOR /d %%G in ("*.*") DO rmdir %%G /s /q
cd ..
if exist "%TMP_DIR%" (
cd "%TMP_DIR%"
del *.* /s /q > nul
FOR /d %%G in ("*.*") DO rmdir %%G /s /q
cd ..
)

rem ---------- Add jars to classpath --c _CLASSPATH%

Expand Down

0 comments on commit 5fbbe26

Please sign in to comment.