Skip to content

Commit

Permalink
Merge pull request #1186 from iloahz/master
Browse files Browse the repository at this point in the history
escape the spaces in dir for shell command
  • Loading branch information
johnhaley81 committed Jan 27, 2017
2 parents b539c6a + 4df78f5 commit 19225ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lifecycleScripts/configureLibssh2.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
var cp = require("child_process");
var path = require("path");
var rooted = path.join.bind(path, __dirname, "..");
var rooted = function (dir) {
var fullPath = path.join(__dirname, "..", dir);
var escapedPathForShell = fullPath.replace(/ /g, "\\ ");
return escapedPathForShell;
};

module.exports = function retrieveExternalDependencies() {
if (process.platform === "win32") {
Expand Down

0 comments on commit 19225ef

Please sign in to comment.