Update src/runner.ts

Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
This commit is contained in:
Henning Makholm 2021-05-05 20:46:04 +02:00 committed by Andrew Eisenberg
parent e7e64d59be
commit a6ebb19b5b
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -249,7 +249,8 @@ program
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, "'\"'\"'")}'`
([key, value]) =>
`export ${key}='${value.replace(/'/g, "'\"'\"'")}'`
)
.join("\n");
fs.writeFileSync(shEnvFile, shEnvFileContents);