From 0b99f83d6fd22713f28f3b2da493576014ba0816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfred=20W=C3=A4rns=C3=A4ter?= Date: Thu, 5 Aug 2021 17:53:45 +0200 Subject: [PATCH] fixed bug that broke the build process when building twice --- common.jake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common.jake b/common.jake index d01fe744c..a97a6976e 100644 --- a/common.jake +++ b/common.jake @@ -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);