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

fix: exclude theme.json from interrogation

This commit is contained in:
hacksalot 2018-02-01 17:56:43 -05:00
parent 157a2a6145
commit 54d056c4b7
No known key found for this signature in database
GPG Key ID: 2F343EC247CA4B06
2 changed files with 5 additions and 0 deletions

View File

@ -142,6 +142,9 @@ Definition of the FRESHTheme class.
_loadOne = function(absPath, formatsHash, tplFolder) { _loadOne = function(absPath, formatsHash, tplFolder) {
var absPathSafe, act, defFormats, idx, isPrimary, obj, outFmt, pathInfo, portion, ref, ref1, reg, res; var absPathSafe, act, defFormats, idx, isPrimary, obj, outFmt, pathInfo, portion, ref, ref1, reg, res;
pathInfo = parsePath(absPath); pathInfo = parsePath(absPath);
if (pathInfo.basename.toLowerCase() === 'theme.json') {
return;
}
absPathSafe = absPath.trim().toLowerCase(); absPathSafe = absPath.trim().toLowerCase();
outFmt = ''; outFmt = '';
act = 'copy'; act = 'copy';

View File

@ -129,6 +129,8 @@ _load = (formatsHash) ->
_loadOne = ( absPath, formatsHash, tplFolder ) -> _loadOne = ( absPath, formatsHash, tplFolder ) ->
pathInfo = parsePath absPath pathInfo = parsePath absPath
return if pathInfo.basename.toLowerCase() == 'theme.json'
absPathSafe = absPath.trim().toLowerCase() absPathSafe = absPath.trim().toLowerCase()
outFmt = '' outFmt = ''
act = 'copy' act = 'copy'