1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-25 01:40:10 +00:00

Fix path glitch from recent changes.

This commit is contained in:
James Devlin 2015-09-02 17:13:14 -04:00
parent 818a071433
commit ad94fcbcef

View File

@ -70,8 +70,7 @@ module.exports = function () {
// Load the theme template // Load the theme template
var fName = f.substring( f.lastIndexOf('.') + 1 ); var fName = f.substring( f.lastIndexOf('.') + 1 );
var fObj = _fmts.filter( function(_f) { return _f.name === fName; } )[0]; var fObj = _fmts.filter( function(_f) { return _f.name === fName; } )[0];
var fOut = path.join( process.cwd(), var fOut = path.join( f.substring( 0, f.lastIndexOf('.') + 1 ) + fObj.ext );
f.substring( 0, f.lastIndexOf('.') + 1 ) + fObj.ext );
console.log( 'Generating ' + fName.toUpperCase() + ' resume: ' + fOut ); console.log( 'Generating ' + fName.toUpperCase() + ' resume: ' + fOut );
var themeFile = path.join( __dirname, '../../blueprint/', _opts.theme, var themeFile = path.join( __dirname, '../../blueprint/', _opts.theme,
fName + '.' + (fObj.fmt || fObj.ext)); fName + '.' + (fObj.fmt || fObj.ext));