diff options
| author | XhmikosR <[email protected]> | 2021-01-14 13:28:39 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-14 13:28:39 +0200 |
| commit | 1d8bc95c925f2762c8f208db32f09889c64feccd (patch) | |
| tree | 2aa74a2c471b7475d1db422079f0562b0ecc9e04 | |
| parent | 63880e0e8cbda677c66a33f1d78df33ef14d1a89 (diff) | |
| download | bootstrap-1d8bc95c925f2762c8f208db32f09889c64feccd.tar.xz bootstrap-1d8bc95c925f2762c8f208db32f09889c64feccd.zip | |
Update zip-examples.js (#32799)
Remove previously created zip files before creating a new one
| -rw-r--r-- | build/zip-examples.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/zip-examples.js b/build/zip-examples.js index e5eb56f22..b2f156502 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', [ |
