1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-12 08:34:08 +02:00

Update zip-examples.js (#32799)

Remove previously created zip files before creating a new one
This commit is contained in:
XhmikosR
2021-01-14 13:28:39 +02:00
committed by GitHub
parent 63880e0e8c
commit 1d8bc95c92

View 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', [