mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 13:49:13 +08:00
separate args
This commit is contained in:
parent
b0ce9247be
commit
3406ce58d6
@ -138,7 +138,7 @@ export async function rmRF(inputPath: string): Promise<void> {
|
|||||||
if (await ioUtil.isDirectory(inputPath, true)) {
|
if (await ioUtil.isDirectory(inputPath, true)) {
|
||||||
result = childProcess.spawn(
|
result = childProcess.spawn(
|
||||||
cmdPath,
|
cmdPath,
|
||||||
['/s', '/c', 'rd /s /q "%inputPath%"'],
|
['/s', '/c', 'rd', '/s', '/q', '"%inputPath%"'],
|
||||||
{
|
{
|
||||||
env: {inputPath},
|
env: {inputPath},
|
||||||
shell: true
|
shell: true
|
||||||
@ -147,7 +147,7 @@ export async function rmRF(inputPath: string): Promise<void> {
|
|||||||
} else {
|
} else {
|
||||||
result = childProcess.spawn(
|
result = childProcess.spawn(
|
||||||
cmdPath,
|
cmdPath,
|
||||||
['/s', '/c', 'del /f /q /a "%inputPath%"'],
|
['/s', '/c', 'del', '/f', '/q', '/a', '"%inputPath%"'],
|
||||||
{
|
{
|
||||||
env: {inputPath},
|
env: {inputPath},
|
||||||
shell: true
|
shell: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user