diff options
Diffstat (limited to 'pkg/runner/res/trampoline.js')
-rw-r--r-- | pkg/runner/res/trampoline.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/runner/res/trampoline.js b/pkg/runner/res/trampoline.js new file mode 100644 index 0000000..e9a8732 --- /dev/null +++ b/pkg/runner/res/trampoline.js @@ -0,0 +1,14 @@ +const { spawnSync } = require('child_process') +const spawnArguments = { + cwd: process.env.INPUT_CWD, + stdio: [ + process.stdin, + process.stdout, + process.stderr + ] +} +const child = spawnSync( + '/bin/sh', + ['-c'].concat(process.env.INPUT_COMMAND), + spawnArguments) +process.exit(child.status) |