blob: e9a873229fc42839a24181c9a2be8b42a252a054 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
|