Skip to content

Commit 3b745cd

Browse files
committed
fixes homedir issue
1 parent b7019a3 commit 3b745cd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/LocalBinary.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ function LocalBinary(){
2020
this.httpPath = 'https://s3.amazonaws.com/bs-automate-prod/local/BrowserStackLocal-linux-ia32';
2121
}
2222

23-
this.orderedPaths = [
24-
path.join(this.homedir(), '.browserstack'),
25-
process.cwd(),
26-
os.tmpdir()
27-
];
28-
2923
this.download = function(destParentDir, callback){
3024
if(!this.checkPath(destParentDir))
3125
fs.mkdirSync(path);
@@ -103,7 +97,13 @@ function LocalBinary(){
10397
}
10498

10599
return home || null;
106-
}
100+
};
101+
102+
this.orderedPaths = [
103+
path.join(this.homedir(), '.browserstack'),
104+
process.cwd(),
105+
os.tmpdir()
106+
];
107107
}
108108

109109
module.exports = LocalBinary;

0 commit comments

Comments
 (0)