fix(apply): use a better option for getting the user's home dir
This commit is contained in:
parent
2c34f53de4
commit
da48c12ea9
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ try {
|
|||
if(typeof process.env.COPAY_EXTERNAL_SERVICES_CONFIG_LOCATION !== 'undefined') {
|
||||
var location = process.env.COPAY_EXTERNAL_SERVICES_CONFIG_LOCATION;
|
||||
if(location.charAt(0) === '~') {
|
||||
location = location.replace(/^\~/, os.homedir());
|
||||
location = location.replace(/^\~/, process.env.HOME || process.env.USERPROFILE);
|
||||
}
|
||||
console.log('Found at: ' + location);
|
||||
console.log('Copying ' + location + ' to root');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue