Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'main' into remove_file
Nick Fyson authored and GitHub committed Sep 15, 2020

Unverified

No user is associated with the committer email.
2 parents 3325da8 + 1ca9d4c commit 0da3e94
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/runner.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/runner.js.map
4 changes: 3 additions & 1 deletion src/runner.ts
@@ -231,7 +231,9 @@ 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("$", "\\$")}"`)
.map(
([key, value]) => `export ${key}="${value.replace(/\$/g, "\\$")}"`
)
.join("\n");
fs.writeFileSync(shEnvFile, shEnvFileContents);

0 comments on commit 0da3e94

Please sign in to comment.