Skip to content

Commit

Permalink
Merge pull request #630 from pattern-lab/bugfix/629-starterkit-race
Browse files Browse the repository at this point in the history
Bugfix/629 starterkit race
  • Loading branch information
bmuenzenmeyer authored Feb 24, 2017
2 parents 6e885cb + 674c01c commit d9ee3ae
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions core/lib/starterkit_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ var starterkit_manager = function (config) {
console.log('Overwriting contents of', paths.source.root, 'during starterkit load.');
}

fs.copy(kitPath, paths.source.root, function (ex) {
if (ex) {
console.error(ex);
}
util.debug('starterkit ' + starterkitName + ' loaded successfully.');
});
try {
fs.copySync(kitPath, paths.source.root);
} catch (ex) {
util.error(ex);
return;
}
util.debug('starterkit ' + starterkitName + ' loaded successfully.');
}
} catch (ex) {
console.log(ex);
Expand Down

0 comments on commit d9ee3ae

Please sign in to comment.