Skip to content

Commit

Permalink
Fix #629 Race condition when loading starter kits
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Brennecke committed Feb 24, 2017
1 parent 6e885cb commit 674c01c
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 674c01c

Please sign in to comment.