Skip to content

Commit

Permalink
FIX: caliper bind command now compatible with Windows OS
Browse files Browse the repository at this point in the history
Signed-off-by: FranSoto7 <[email protected]>
  • Loading branch information
fransotodev committed Feb 25, 2021
1 parent 12a3e52 commit b615b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/caliper-cli/lib/lib/bindCommon.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class BindCommon {

logger.info(`Using working directory: ${cwd}`);
logger.info(`Calling npm with: ${argArray.join(' ')}`);
await CaliperUtils.invokeCommand('npm', argArray, { ...settings.env, ...process.env }, cwd);
await CaliperUtils.invokeCommand(/^win/.test(process.platform) ? 'npm.cmd' : 'npm', argArray, { ...settings.env, ...process.env }, cwd);
} catch (e) {
logger.error(e.message);
throw e;
Expand Down

0 comments on commit b615b17

Please sign in to comment.