mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-26 22:28:04 +08:00
Update escaping rules in io's rmRF (#828)
* Better Handling of escaping in rmrf
This commit is contained in:
@@ -166,3 +166,8 @@ function isUnixExecutable(stats: fs.Stats): boolean {
|
||||
((stats.mode & 64) > 0 && stats.uid === process.getuid())
|
||||
)
|
||||
}
|
||||
|
||||
// Get the path of cmd.exe in windows
|
||||
export function getCmdPath(): string {
|
||||
return process.env['COMSPEC'] ?? `cmd.exe`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user