Skip to content

Commit

Permalink
fix problem with hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelo Aplanalp authored and Marcelo Aplanalp committed Dec 2, 2016
1 parent 54ff8c7 commit 2f77d1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hooks.es6/beforePluginInstallHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
4 changes: 2 additions & 2 deletions hooks/beforePluginInstallHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down Expand Up @@ -152,4 +152,4 @@ module.exports = function (ctx) {
installRequiredNodeModules(modules);

createPluginInstalledFlag(ctx);
};
};

0 comments on commit 2f77d1e

Please sign in to comment.