]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update zip-examples.js (#32799)
authorXhmikosR <xhmikosr@gmail.com>
Thu, 14 Jan 2021 11:28:39 +0000 (13:28 +0200)
committerGitHub <noreply@github.com>
Thu, 14 Jan 2021 11:28:39 +0000 (13:28 +0200)
Remove previously created zip files before creating a new one

build/zip-examples.js

index e5eb56f2276ad2770de7c769ae94de245274ac66..b2f156502ff5f424157440f162ee28ff2dc74e18 100644 (file)
@@ -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', [