From 0c55932e56b1aa4a542ca10eb096e429d6442818 Mon Sep 17 00:00:00 2001 From: Jon Hall Date: Fri, 14 Oct 2016 15:18:33 +0100 Subject: [PATCH] Fix postinstall script crash when install location has spaces in its path --- lifecycleScripts/postinstall.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lifecycleScripts/postinstall.js b/lifecycleScripts/postinstall.js index 91e7c2a3c..43d2199c8 100755 --- a/lifecycleScripts/postinstall.js +++ b/lifecycleScripts/postinstall.js @@ -30,7 +30,7 @@ module.exports = function install() { return Promise.resolve(); } - return exec("node " + path.join(rootPath, "dist/nodegit.js")) + return exec("node \"" + path.join(rootPath, "dist/nodegit.js\"")) .catch(function(e) { if (~e.toString().indexOf("Module version mismatch")) { console.warn(