1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-06-30 23:40:05 +01:00

Fix explicit output file bug.

Fixes a bug that occurs when an explicit output file with an extension
other than .all is specified on the command line.
This commit is contained in:
devlinjd 2015-10-10 21:38:06 -04:00
parent d4a3a08aff
commit cf15738f58

View File

@ -50,7 +50,7 @@ module.exports = function () {
var to = path.resolve(t), pa = path.parse(to), fmat = pa.ext || '.all';
targets.push.apply(targets, fmat === '.all' ?
_fmts.map(function(z){ return { file: to.replace(/all$/g,z.ext), fmt: z } })
: [{ file: to, fmt: z }]);
: [{ file: to, fmt: _.findWhere( _fmts, { ext: fmat.substring(1) }) }]);
});
// Run the transformation!