mirror of https://github.com/actions/toolkit
reversing order
parent
499bfd9710
commit
4229b9c5c2
|
@ -132,7 +132,7 @@ 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)) {
|
||||||
// deletes a dir then sets output to quiet
|
// deletes a dir then sets output to quiet
|
||||||
spawn(cmdPath, ['/s', '/c', ' rd "%inputPath%"'], {
|
spawn(cmdPath, ['/s', '/c', 'rd "%inputPath%"'], {
|
||||||
shell: true,
|
shell: true,
|
||||||
env: {inputPath},
|
env: {inputPath},
|
||||||
timeout: 500
|
timeout: 500
|
||||||
|
@ -145,7 +145,7 @@ export async function rmRF(inputPath: string): Promise<void> {
|
||||||
// })
|
// })
|
||||||
} else {
|
} else {
|
||||||
// deletes a file then pipes output
|
// deletes a file then pipes output
|
||||||
spawn(cmdPath, ['/s', '/c', `del /f:on /a "%inputPath%"`], {
|
spawn(cmdPath, ['/s', '/c', `del "%inputPath%"`], {
|
||||||
shell: false,
|
shell: false,
|
||||||
env: {inputPath},
|
env: {inputPath},
|
||||||
timeout: 500
|
timeout: 500
|
||||||
|
|
Loading…
Reference in New Issue