[Poly > Yauzl] Fix testing error, clean code
This commit is contained in:
parent
4da7c11a04
commit
1d78f47fdc
|
@ -24,12 +24,10 @@ exports.open = async (zipPath, _options, callback) => {
|
|||
|
||||
mkdirSync(extractPath, { recursive: true });
|
||||
|
||||
const proc = execFile('unzipp', ['-o', zipPath.replaceAll('"', ''), '-d', extractPath]);
|
||||
const proc = execFile('unzip', ['-o', zipPath.replaceAll('"', ''), '-d', extractPath]);
|
||||
log('Yauzl', 'Spawned');
|
||||
|
||||
proc.stderr.on('data', (data) => {
|
||||
errorOut(data.toString());
|
||||
});
|
||||
proc.stderr.on('data', errorOut);
|
||||
|
||||
proc.on('error', (err) => {
|
||||
if (err.code === 'ENOENT') {
|
||||
|
|
Loading…
Reference in New Issue