Skip to content

Commit 2f77d1e

Browse files
Marcelo AplanalpMarcelo Aplanalp
authored andcommitted
fix problem with hooks
1 parent 54ff8c7 commit 2f77d1e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hooks.es6/beforePluginInstallHook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function installNodeModule(moduleName, callback) {
4242
}
4343
printLog('Can\'t find module ' + moduleName + ', running npm install');
4444

45-
var cmd = 'cd plugins/io.branch.sdk; npm install -D ' + moduleName;
45+
var cmd = 'cd plugins/io.branch.sdk && npm install -D ' + moduleName;
4646
exec(cmd, function(err, stdout, stderr) {
4747
callback(err);
4848
});

hooks/beforePluginInstallHook.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function installNodeModule(moduleName, callback) {
4444
}
4545
printLog('Can\'t find module ' + moduleName + ', running npm install');
4646

47-
var cmd = 'cd plugins/io.branch.sdk; npm install -D ' + moduleName;
47+
var cmd = 'cd plugins/io.branch.sdk && npm install -D ' + moduleName;
4848
exec(cmd, function (err, stdout, stderr) {
4949
callback(err);
5050
});
@@ -152,4 +152,4 @@ module.exports = function (ctx) {
152152
installRequiredNodeModules(modules);
153153

154154
createPluginInstalledFlag(ctx);
155-
};
155+
};

0 commit comments

Comments
 (0)