| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,10 @@ | |||
| 1 | 1 | var cp = require("child_process"); | |
| 2 | 2 | var path = require("path"); | |
| 3 | - var rooted = path.join.bind(path, __dirname, ".."); | ||
| 3 | + var rooted = function (dir) { | ||
| 4 | + var fullPath = path.join(__dirname, "..", dir); | ||
| 5 | + var escapedPathForShell = fullPath.replace(/ /g, "\\ "); | ||
| 6 | + return escapedPathForShell; | ||
| 7 | + }; | ||
| 4 | 8 | ||
| 5 | 9 | module.exports = function retrieveExternalDependencies() { | |
| 6 | 10 | if (process.platform === "win32") { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments