1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-05 09:56:22 +00:00

Merge pull request #81 from tjlav5/master

Fix relative theme directory
This commit is contained in:
hacksalot 2016-01-01 13:46:55 -05:00
commit c17261cd25

View File

@ -242,9 +242,8 @@ Implementation of the 'generate' verb for HackMyResume.
Verify the specified theme name/path. Verify the specified theme name/path.
*/ */
function verify_theme( themeNameOrPath ) { function verify_theme( themeNameOrPath ) {
var tFolder = PATH.resolve( var tFolder = PATH.join(
__dirname, parsePath ( require.resolve('fresh-themes') ).dirname,
'../../node_modules/fresh-themes/themes',
themeNameOrPath themeNameOrPath
); );
var exists = require('path-exists').sync; var exists = require('path-exists').sync;