mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-11 18:02:28 +03:00
Update zip-examples.js (#32799)
Remove previously created zip files before creating a new one
This commit is contained in:
@@ -44,8 +44,8 @@ if (!sh.test('-d', rootDocsDir)) {
|
|||||||
// switch to the root dir
|
// switch to the root dir
|
||||||
sh.cd(path.join(__dirname, '..'))
|
sh.cd(path.join(__dirname, '..'))
|
||||||
|
|
||||||
// remove any previously created folder with the same name
|
// remove any previously created folder/zip with the same name
|
||||||
sh.rm('-rf', distFolder)
|
sh.rm('-rf', [distFolder, `${distFolder}.zip`])
|
||||||
|
|
||||||
// create any folders so that `cp` works
|
// create any folders so that `cp` works
|
||||||
sh.mkdir('-p', [
|
sh.mkdir('-p', [
|
||||||
|
|||||||
Reference in New Issue
Block a user