fixed bug that broke the build process when building twice

This commit is contained in:
Alfred Wärnsäter
2021-08-05 17:53:45 +02:00
parent dc5b3f48e8
commit 0b99f83d6f
+2 -1
View File
@@ -211,10 +211,11 @@ setupEnvironment();
global.rm_rf = function(/*String*/ aFilename)
{
try { fs.rm(aFilename, {recursive: true, force: true}); }
try { fs.rmSync(aFilename, {recursive: true, force: true}); }
catch (anException) { }
};
// from stackoverflow
function copyRecursiveSync (src, dest) {
var exists = fs.existsSync(src);