From: XhmikosR Date: Thu, 14 Jan 2021 11:28:39 +0000 (+0200) Subject: Update zip-examples.js (#32799) X-Git-Tag: v5.0.0-beta2~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d8bc95c925f2762c8f208db32f09889c64feccd;p=thirdparty%2Fbootstrap.git Update zip-examples.js (#32799) Remove previously created zip files before creating a new one --- diff --git a/build/zip-examples.js b/build/zip-examples.js index e5eb56f227..b2f156502f 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', [