Merge branch 'main' into daverlo/categoryInput
This commit is contained in:
commit
ea18d47a2b
20 changed files with 169 additions and 74 deletions
2
lib/runner.js
generated
2
lib/runner.js
generated
|
|
@ -150,7 +150,7 @@ program
|
|||
const shEnvFile = path.join(config.tempDir, "codeql-env.sh");
|
||||
const shEnvFileContents = Object.entries(tracerConfig.env)
|
||||
// Some vars contain ${LIB} that we do not want to be expanded when executing this script
|
||||
.map(([key, value]) => `export ${key}="${value.replace(/\$/g, "\\$")}"`)
|
||||
.map(([key, value]) => `export ${key}='${value.replace(/'/g, "'\"'\"'")}'`)
|
||||
.join("\n");
|
||||
fs.writeFileSync(shEnvFile, shEnvFileContents);
|
||||
logger.info(`\nCodeQL environment output to "${jsonEnvFile}" and "${shEnvFile}". ` +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue