mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 08:59:09 +08:00
.
This commit is contained in:
parent
f6011790d6
commit
5ff5e4f9f0
@ -134,7 +134,7 @@ export async function rmRF(inputPath: string): Promise<void> {
|
||||
resolve('timeout')
|
||||
}, 500)
|
||||
|
||||
let result = null
|
||||
let result: childProcess.ChildProcess
|
||||
if (await ioUtil.isDirectory(inputPath, true)) {
|
||||
result = childProcess.spawn(
|
||||
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}`)
|
||||
})
|
||||
|
||||
result.stdout.on('data', (data) => {
|
||||
result.stdout?.on('data', (data) => {
|
||||
console.log(`stdout: ${data}`)
|
||||
});
|
||||
|
||||
result.stderr.on('data', (data) => {
|
||||
result.stderr?.on('data', (data) => {
|
||||
console.log(`stdout: ${data}`)
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user