mirror of https://github.com/actions/toolkit
pull/1344/head
parent
f6011790d6
commit
5ff5e4f9f0
|
@ -134,7 +134,7 @@ export async function rmRF(inputPath: string): Promise<void> {
|
||||||
resolve('timeout')
|
resolve('timeout')
|
||||||
}, 500)
|
}, 500)
|
||||||
|
|
||||||
let result = null
|
let result: childProcess.ChildProcess
|
||||||
if (await ioUtil.isDirectory(inputPath, true)) {
|
if (await ioUtil.isDirectory(inputPath, true)) {
|
||||||
result = childProcess.spawn(
|
result = childProcess.spawn(
|
||||||
cmdPath,
|
cmdPath,
|
||||||
|
@ -153,15 +153,15 @@ export async function rmRF(inputPath: string): Promise<void> {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
result.on('spawn', (data) => {
|
result.on('spawn', () => {
|
||||||
console.log(`spawn: ${result.spawnargs}`)
|
console.log(`spawn: ${result.spawnargs}`)
|
||||||
})
|
})
|
||||||
|
|
||||||
result.stdout.on('data', (data) => {
|
result.stdout?.on('data', (data) => {
|
||||||
console.log(`stdout: ${data}`)
|
console.log(`stdout: ${data}`)
|
||||||
});
|
});
|
||||||
|
|
||||||
result.stderr.on('data', (data) => {
|
result.stderr?.on('data', (data) => {
|
||||||
console.log(`stdout: ${data}`)
|
console.log(`stdout: ${data}`)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue