mirror of https://github.com/actions/toolkit
try inlining inputPath
parent
bcf8127e13
commit
7a5a1c3d42
|
@ -138,18 +138,12 @@ export async function rmRF(inputPath: string): Promise<void> {
|
|||
if (await ioUtil.isDirectory(inputPath, true)) {
|
||||
result = childProcess.spawn(
|
||||
cmdPath,
|
||||
['/s', '/c', 'rd', '/s', '/q', '"%inputPath%"'],
|
||||
{
|
||||
env: {inputPath}
|
||||
}
|
||||
['/s', '/c', 'rd', '/s', '/q', `"${inputPath}"`]
|
||||
)
|
||||
} else {
|
||||
result = childProcess.spawn(
|
||||
cmdPath,
|
||||
['/s', '/c', 'del', '/f', '/q', '/a', '"%inputPath%"'],
|
||||
{
|
||||
env: {inputPath}
|
||||
}
|
||||
['/s', '/c', 'del', '/f', '/q', '/a', `"${inputPath}"`]
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -162,7 +156,7 @@ export async function rmRF(inputPath: string): Promise<void> {
|
|||
})
|
||||
|
||||
result.stderr?.on('data', data => {
|
||||
console.log(`stdout: ${data}`)
|
||||
console.log(`stderr: ${data}`)
|
||||
})
|
||||
|
||||
result.on('error', err => {
|
||||
|
|
Loading…
Reference in New Issue