Remove calls to fs.rmdirSync

This commit is contained in:
Edoardo Pirovano 2021-09-23 09:23:59 +01:00
parent f151a3cfe6
commit 292203e8b6
No known key found for this signature in database
GPG key ID: 047556B5D93FFE28
9 changed files with 11 additions and 11 deletions

2
lib/runner.js generated
View file

@ -124,7 +124,7 @@ program
const checkoutPath = cmd.checkoutPath || process.cwd();
// Wipe the temp dir
logger.info(`Cleaning temp directory ${tempDir}`);
fs.rmdirSync(tempDir, { recursive: true });
fs.rmSync(tempDir, { recursive: true, force: true });
fs.mkdirSync(tempDir, { recursive: true });
const auth = await (0, util_1.getGitHubAuth)(logger, cmd.githubAuth, cmd.githubAuthStdin);
const apiDetails = {