Skip to content

Commit

Permalink
Refactor the configuration of archivers
Browse files Browse the repository at this point in the history
  • Loading branch information
eGavr committed Sep 4, 2014
1 parent 369c356 commit d5e706f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .cmb/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 2 additions & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
};
Expand Down

0 comments on commit d5e706f

Please sign in to comment.