mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-12-23 05:37:23 +00: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:
parent
d4a3a08aff
commit
cf15738f58
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user