Skip to content

Commit 0c55932

Browse files
authored
Fix postinstall script crash when install location has spaces in its path
1 parent bd54fa8 commit 0c55932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lifecycleScripts/postinstall.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = function install() {
3030
return Promise.resolve();
3131
}
3232

33-
return exec("node " + path.join(rootPath, "dist/nodegit.js"))
33+
return exec("node \"" + path.join(rootPath, "dist/nodegit.js\""))
3434
.catch(function(e) {
3535
if (~e.toString().indexOf("Module version mismatch")) {
3636
console.warn(

0 commit comments

Comments
 (0)