mirror of https://github.com/actions/toolkit
setting shell to false
parent
c6cc3ac742
commit
2e5fdbcbfd
|
@ -130,16 +130,18 @@ export async function rmRF(inputPath: string): Promise<void> {
|
||||||
const cmdPath = ioUtil.getCmdPath()
|
const cmdPath = ioUtil.getCmdPath()
|
||||||
if (await ioUtil.isDirectory(inputPath, true)) {
|
if (await ioUtil.isDirectory(inputPath, true)) {
|
||||||
await spawn(cmdPath, [`/s /c "rd /s /q "%inputPath%""`], {
|
await spawn(cmdPath, [`/s /c "rd /s /q "%inputPath%""`], {
|
||||||
shell: true,
|
shell: false,
|
||||||
env: {inputPath}
|
env: {inputPath},
|
||||||
|
timeout: 500
|
||||||
})
|
})
|
||||||
// await exec(`${cmdPath} /s /c "rd /s /q "%inputPath%""`, {
|
// await exec(`${cmdPath} /s /c "rd /s /q "%inputPath%""`, {
|
||||||
// env: {inputPath}
|
// env: {inputPath}
|
||||||
// })
|
// })
|
||||||
} else {
|
} else {
|
||||||
await spawn(cmdPath, [`/s /c "del /f /a "%inputPath%""`], {
|
await spawn(cmdPath, [`/s /c "del /f /a "%inputPath%""`], {
|
||||||
shell: true,
|
shell: false,
|
||||||
env: {inputPath}
|
env: {inputPath},
|
||||||
|
timeout: 500
|
||||||
})
|
})
|
||||||
// await exec(`${cmdPath} /s /c "del /f /a "%inputPath%""`, {
|
// await exec(`${cmdPath} /s /c "del /f /a "%inputPath%""`, {
|
||||||
// env: {inputPath}
|
// env: {inputPath}
|
||||||
|
|
Loading…
Reference in New Issue