Skip to content
Snippets Groups Projects
Commit 752037da authored by Toufic Batache's avatar Toufic Batache
Browse files

Fix script

parent 878aa9ce
No related branches found
No related tags found
No related merge requests found
Pipeline #11744 passed
......@@ -19,12 +19,16 @@ if (fs.pathExistsSync(indexFilePath)) {
// Remove every budget simulation from cache.
const budgetsDir = path.join(simulationsBudgetDir, "responses")
if (fs.pathExistsSync(budgetsDir)) {
if (fs.lstatSync(budgetsDir).isDirectory()) {
fs.removeSync(budgetsDir)
}
}
// Remove every test case simulation from cache.
const testCasesDir = path.join(simulationsTestCasesDir, "responses")
if (fs.pathExistsSync(testCasesDir)) {
if (fs.lstatSync(testCasesDir).isDirectory()) {
fs.removeSync(testCasesDir)
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment