Skip to content

Commit

Permalink
exex to spawn for bolt
Browse files Browse the repository at this point in the history
  • Loading branch information
raianand committed Feb 14, 2024
1 parent b57e99b commit f05fddc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
14 changes: 12 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,19 @@ async function run() {
`BOLT_MODE=${mode} BOLT_ALLOW_HTTP=${ allow_http} BOLT_DEFAULT_POLICY=${default_policy} $HOME/.local/bin/mitmdump --mode transparent --showhost --set block_global=false -s /home/mitmproxyuser/intercept.py &`
];
// core.info(runBoltCommand)
spawn(boltCommand, boltArgs , {
detached: true
const cp = spawn(boltCommand, boltArgs);

cp.stdout.on('data', (data) => {
core.info(`stdout: ${data}`);
});

cp.stderr.on('data', (data) => {
core.error(`stderr: ${data}`);
});

cp.on('close', (code) => {
core.info(`child process exited with code ${code}`);
});

core.info('Waiting for bolt to start...')
const ms = 5000
Expand Down

0 comments on commit f05fddc

Please sign in to comment.