Skip to content

Commit cf794cd

Browse files
committed
fix: don't pass on arguments from node executable
When running a script that involves `ipfsd-ctl` and you pass on additional parameters it used to pass on those parameters to the subprocesses it spaws. This lead to issues especially with `--inspect-brk` as it would spawn another inspector which then would fail because there is already one running on the same port. Fixes #202.
1 parent 0e667bb commit cf794cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/run.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ module.exports = (node, args, opts, callback) => {
1313
executable = process.execPath
1414
}
1515

16+
// Don't pass on arguments that were passed into the node executable
17+
opts.execArgv = []
18+
1619
return exec(executable, args, opts, callback)
1720
}

0 commit comments

Comments
 (0)