From d5e706fd36c47ee32acedb5ba2dce75c20e878df Mon Sep 17 00:00:00 2001 From: Evgeniy Gavryushin Date: Thu, 4 Sep 2014 15:50:05 +0400 Subject: [PATCH] Refactor the configuration of archivers --- .cmb/config.js | 2 +- lib/utils.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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)); };