mirror of https://github.com/actions/toolkit
reversing order
parent
3946ffb099
commit
499bfd9710
|
@ -131,7 +131,8 @@ export async function rmRF(inputPath: string): Promise<void> {
|
||||||
try {
|
try {
|
||||||
const cmdPath = ioUtil.getCmdPath()
|
const cmdPath = ioUtil.getCmdPath()
|
||||||
if (await ioUtil.isDirectory(inputPath, true)) {
|
if (await ioUtil.isDirectory(inputPath, true)) {
|
||||||
spawn(cmdPath, [`/s /c "rd /s /q "%inputPath%""`], {
|
// deletes a dir then sets output to quiet
|
||||||
|
spawn(cmdPath, ['/s', '/c', ' rd "%inputPath%"'], {
|
||||||
shell: true,
|
shell: true,
|
||||||
env: {inputPath},
|
env: {inputPath},
|
||||||
timeout: 500
|
timeout: 500
|
||||||
|
@ -143,7 +144,8 @@ export async function rmRF(inputPath: string): Promise<void> {
|
||||||
// env: {inputPath}
|
// env: {inputPath}
|
||||||
// })
|
// })
|
||||||
} else {
|
} else {
|
||||||
spawn(cmdPath, [`/s /c "del /f /a "%inputPath%""`], {
|
// deletes a file then pipes output
|
||||||
|
spawn(cmdPath, ['/s', '/c', `del /f:on /a "%inputPath%"`], {
|
||||||
shell: false,
|
shell: false,
|
||||||
env: {inputPath},
|
env: {inputPath},
|
||||||
timeout: 500
|
timeout: 500
|
||||||
|
|
Loading…
Reference in New Issue