Skip to content

Commit

Permalink
Improve accuracy of OSX homepath
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJaredWilcurt committed Oct 13, 2016
1 parent 3e37f06 commit 90a9459
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scout-files/_scripts/ftux.js
Expand Up @@ -48,6 +48,9 @@
homePath = process.env.USERPROFILE; homePath = process.env.USERPROFILE;
} else if (process.platform == 'darwin') { } else if (process.platform == 'darwin') {
homePath = '/Users/' + process.env.USER; homePath = '/Users/' + process.env.USER;
if (process.env.HOME) {
homePath = process.env.HOME;
}
} }
var myDocsPath = path.join(homePath, 'Documents'); var myDocsPath = path.join(homePath, 'Documents');
var myDesktopPath = path.join(homePath, 'Desktop'); var myDesktopPath = path.join(homePath, 'Desktop');
Expand Down

0 comments on commit 90a9459

Please sign in to comment.