Skip to content

Commit 7f1289b

Browse files
committed
Pipe stderr too
1 parent 88d475f commit 7f1289b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import { execFile } from 'child_process'
44

55
try {
66
checkInputs()
7-
execFile(path(__dirname, 'entrypoint.sh'))
8-
.stdout?.pipe(process.stdout)
7+
const child = execFile(path(__dirname, 'entrypoint.sh'))
8+
child.stdout?.pipe(process.stdout)
9+
child.stderr?.pipe(process.stderr)
910
} catch (err) {
1011
console.error(err)
1112
setFailed(err instanceof Error ? err.message : err)

0 commit comments

Comments
 (0)