Log that we're clearing the temp dir
This commit is contained in:
parent
3dfaa88a1d
commit
6c8f96d781
3 changed files with 4 additions and 2 deletions
3
lib/runner.js
generated
3
lib/runner.js
generated
|
|
@ -72,7 +72,7 @@ program
|
|||
.description('Initializes CodeQL')
|
||||
.requiredOption('--repository <repository>', 'Repository name')
|
||||
.requiredOption('--github-url <url>', 'URL of GitHub instance')
|
||||
.requiredOption('--github-auth <auth>', 'GitHub Apps token, or of the form "username:token" if using a personal access token')
|
||||
.requiredOption('--github-auth <auth>', 'GitHub Apps token or personal access token')
|
||||
.option('--languages <languages>', 'Comma-separated list of languages to analyze. Defaults to trying to detect languages from the repo.')
|
||||
.option('--queries <queries>', 'Comma-separated list of additional queries to run. By default, this overrides the same setting in a configuration file.')
|
||||
.option('--config-file <file>', 'Path to config file')
|
||||
|
|
@ -87,6 +87,7 @@ program
|
|||
const tempDir = getTempDir(cmd.tempDir);
|
||||
const toolsDir = getToolsDir(cmd.toolsDir);
|
||||
// Wipe the temp dir
|
||||
logger.info(`Cleaning temp directory ${tempDir}`);
|
||||
fs.rmdirSync(tempDir, { recursive: true });
|
||||
fs.mkdirSync(tempDir, { recursive: true });
|
||||
let codeql;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -100,6 +100,7 @@ program
|
|||
const toolsDir = getToolsDir(cmd.toolsDir);
|
||||
|
||||
// Wipe the temp dir
|
||||
logger.info(`Cleaning temp directory ${tempDir}`);
|
||||
fs.rmdirSync(tempDir, { recursive: true });
|
||||
fs.mkdirSync(tempDir, { recursive: true });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue