Skip to content

Commit 0506f4d

Browse files
committed
fix building when a space is in the path
1 parent b233df9 commit 0506f4d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

lifecycleScripts/install.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ function build() {
111111
}
112112

113113
builder = path.resolve(".", "node_modules", ".bin", builder);
114+
builder = builder.replace(/\s/g, "\\$&");
114115
var cmd = [prefix, builder, "rebuild", target, debug, distUrl]
115116
.join(" ").trim();
116117

lifecycleScripts/retrieveExternalDependencies.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function getVendorLib(name) {
7878
if ((name == "libssh2") && (process.platform !== "win32")) {
7979
return new Promise(function(resolve, reject) {
8080
console.info("[nodegit] Configuring libssh2.");
81-
cp.exec(
81+
cp.execFile(
8282
rooted(vendorPath) + "configure",
8383
{cwd: rooted(vendorPath)},
8484
function(err, stdout, stderr) {

0 commit comments

Comments
 (0)