Permalink
Browse files

Improve accuracy of OSX homepath

  • Loading branch information...
1 parent 3e37f06 commit 90a94595618e03aeaf330050c8e4d4ea097bfd0c @TheJaredWilcurt TheJaredWilcurt committed Oct 13, 2016
Showing with 3 additions and 0 deletions.
  1. +3 −0 scout-files/_scripts/ftux.js
@@ -48,6 +48,9 @@
homePath = process.env.USERPROFILE;
} else if (process.platform == 'darwin') {
homePath = '/Users/' + process.env.USER;
+ if (process.env.HOME) {
+ homePath = process.env.HOME;
+ }
}
var myDocsPath = path.join(homePath, 'Documents');
var myDesktopPath = path.join(homePath, 'Desktop');

0 comments on commit 90a9459

Please sign in to comment.