From 2f77d1e8b546e2d3b1b1719af44e70bb5d0347ff Mon Sep 17 00:00:00 2001 From: Marcelo Aplanalp Date: Fri, 2 Dec 2016 16:26:10 -0300 Subject: [PATCH] fix problem with hooks --- hooks.es6/beforePluginInstallHook.js | 2 +- hooks/beforePluginInstallHook.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hooks.es6/beforePluginInstallHook.js b/hooks.es6/beforePluginInstallHook.js index 53f99cb4..f3c73cf4 100755 --- a/hooks.es6/beforePluginInstallHook.js +++ b/hooks.es6/beforePluginInstallHook.js @@ -42,7 +42,7 @@ function installNodeModule(moduleName, callback) { } printLog('Can\'t find module ' + moduleName + ', running npm install'); - var cmd = 'cd plugins/io.branch.sdk; npm install -D ' + moduleName; + var cmd = 'cd plugins/io.branch.sdk && npm install -D ' + moduleName; exec(cmd, function(err, stdout, stderr) { callback(err); }); diff --git a/hooks/beforePluginInstallHook.js b/hooks/beforePluginInstallHook.js index 201c5195..d896faee 100755 --- a/hooks/beforePluginInstallHook.js +++ b/hooks/beforePluginInstallHook.js @@ -44,7 +44,7 @@ function installNodeModule(moduleName, callback) { } printLog('Can\'t find module ' + moduleName + ', running npm install'); - var cmd = 'cd plugins/io.branch.sdk; npm install -D ' + moduleName; + var cmd = 'cd plugins/io.branch.sdk && npm install -D ' + moduleName; exec(cmd, function (err, stdout, stderr) { callback(err); }); @@ -152,4 +152,4 @@ module.exports = function (ctx) { installRequiredNodeModules(modules); createPluginInstalledFlag(ctx); -}; \ No newline at end of file +};