From fff083e9948d9921bc37cc7d28635484a1fb0200 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 14 Jan 2021 13:17:59 +0200 Subject: [PATCH] Update zip-examples.js Remove previously created zip files before creating a new one --- build/zip-examples.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/zip-examples.js b/build/zip-examples.js index e5eb56f2276a..b2f156502ff5 100644 --- a/build/zip-examples.js +++ b/build/zip-examples.js @@ -44,8 +44,8 @@ if (!sh.test('-d', rootDocsDir)) { // switch to the root dir sh.cd(path.join(__dirname, '..')) -// remove any previously created folder with the same name -sh.rm('-rf', distFolder) +// remove any previously created folder/zip with the same name +sh.rm('-rf', [distFolder, `${distFolder}.zip`]) // create any folders so that `cp` works sh.mkdir('-p', [