Skip to content

Commit

Permalink
issue-1167: fix bug in create-json-config (#1168)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Jul 27, 2016
1 parent 8ef54d8 commit 9c67630
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions grunt/tasks/create-json-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ module.exports = function(grunt) {
customItems.forEach(function (customItem) {
// As any theme folder may be used, we need to first find the location of the
// theme.json file

//if no theme or menu folder exists, skip
if (!grunt.file.exists(grunt.config('sourcedir') + customItem + '/')) return;

var customItemJsonFile;
grunt.file.recurse(grunt.config('sourcedir') + customItem + '/', function(abspath, rootdir, subdir, filename) {
if (filename == customItem + '.json') {
Expand Down

0 comments on commit 9c67630

Please sign in to comment.