Try with .pipe

This commit is contained in:
Federico Grandi
2020-05-01 11:35:06 +02:00
parent 2f6a78549b
commit 98f4b8018b

View File

@@ -5,7 +5,7 @@ import { execFile } from 'child_process'
try {
checkInputs()
execFile(path(__dirname, 'entrypoint.sh'))
.stdout?.on('data', data => info(data.toString()))
.stdout?.pipe(process.stdout)
} catch (err) {
console.error(err)
setFailed(err instanceof Error ? err.message : err)