Increase maxBuffer to fix ENOBUFS error

This commit is contained in:
Darangi 2019-12-18 17:10:28 +01:00
parent 3bf17ac004
commit bdf248d4db

View File

@ -62,6 +62,7 @@ function compress(inputDirPath, outputArchivePath) {
}
compressArguments.push(outputArchivePath, path.basename(inputDirPath));
spawnSync(compressCommand, compressArguments, {
cwd: path.dirname(inputDirPath)
cwd: path.dirname(inputDirPath),
maxBuffer: 2024 * 2024
});
}