diff --git a/.cmb/config.js b/.cmb/config.js index ff69997..05b2efd 100644 --- a/.cmb/config.js +++ b/.cmb/config.js @@ -13,7 +13,7 @@ module.exports = { }, // each method is the imitation of the usage of some archiver archivers: { - gzip: archive('gzip -k [FILE_PATH] && mv [FILE_PATH].gz [TO_ARCH_CSS]', '.gz') + gzip: archive('gzip -k [FILE_PATH]', '.gz') }, // input and output paths: { diff --git a/lib/utils.js b/lib/utils.js index 449bbd9..6007d61 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -62,7 +62,9 @@ function archive(command, fileSuffix) { benchLogger('i', '[a] Exec bash script --> ', _command); + shell.exec('ulimit -n 8192'); shell.exec(_command); + shell.mv('-f', filePath + fileSuffix, toArchCSS); return fs.getFileSize(path.join(toArchCSS, fileName + fileSuffix)); };