Fixing bug in support dir function

This commit is contained in:
Jeffrey Morgan 2015-04-30 14:03:19 -04:00
parent 072d14bb4a
commit a67ce84af8
2 changed files with 3 additions and 1 deletions

View File

@ -240,6 +240,7 @@ var SetupStore = assign(Object.create(EventEmitter.prototype), {
metrics.track('Setup Failed', { metrics.track('Setup Failed', {
step: _currentStep, step: _currentStep,
}); });
console.log(err);
bugsnag.notify('SetupError', err.message, { bugsnag.notify('SetupError', err.message, {
error: err, error: err,
output: err.message output: err.message

View File

@ -40,13 +40,14 @@ module.exports = {
}, },
supportDir: function () { supportDir: function () {
var dirs = ['Library', 'Application\ Support', 'Kitematic']; var dirs = ['Library', 'Application\ Support', 'Kitematic'];
var acc = process.env.HOME; var acc = this.home();
dirs.forEach(function (d) { dirs.forEach(function (d) {
acc = path.join(acc, d); acc = path.join(acc, d);
if (!fs.existsSync(acc)) { if (!fs.existsSync(acc)) {
fs.mkdirSync(acc); fs.mkdirSync(acc);
} }
}); });
return acc;
}, },
CommandOrCtrl: function () { CommandOrCtrl: function () {
return this.isWindows() ? 'Ctrl' : 'Command'; return this.isWindows() ? 'Ctrl' : 'Command';