[skip ci] delete existing package
This commit is contained in:
1 parent
04ed2f82c0
commit
6095901939
2 files changed
+9
No files matched your search
@@ -30,6 +30,11 @@ const { execSync } = require('child_process');
|
||||
// Create a temporary directory
|
||||
const tempDir = fs.mkdtempSync('squash-fs-');
|
||||
|
||||
// delete existing out file
|
||||
if (fs.existsSync(outFile)) {
|
||||
fs.unlinkSync(outFile);
|
||||
}
|
||||
|
||||
// Unzip the file
|
||||
execSync(`unzip ${inFile} -d ${tempDir}`);
|
||||
|
||||
|
||||
Reference in new issue
Block a user