Skip to content

Commit

Permalink
Fix CodeQL Issues (#1084)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaMankal-MS authored Dec 16, 2024
1 parent e304e8c commit 872883a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1435,11 +1435,11 @@ export function rmRF(inputPath: string): void {
try {
if (fs.statSync(inputPath).isDirectory()) {
debug('removing directory ' + inputPath);
childProcess.execSync(`rd /s /q "${inputPath}"`);
childProcess.execFileSync("cmd.exe", ["/c", "rd", "/s", "/q", inputPath]);
}
else {
debug('removing file ' + inputPath);
childProcess.execSync(`del /f /a "${inputPath}"`);
childProcess.execFileSync("cmd.exe", ["/c", "del", "/f", "/a", inputPath]);
}
}
catch (err) {
Expand Down

0 comments on commit 872883a

Please sign in to comment.