Some modifications

This commit is contained in:
Reinier Criel 2025-12-17 13:26:14 +01:00
parent 3c18ad76f7
commit 5de43c1bf2

View file

@ -160,8 +160,8 @@ function modifyPathForCi(shimsDir, binDir) {
if (process.env.BASH_ENV) {
// In CircleCI, persisting PATH across steps is done by appending shell exports
// to the file referenced by BASH_ENV. CircleCI sources this file for each step.
const exportLine = `export PATH=\"${shimsDir}:${binDir}:$PATH\"` + os.EOL;
// to the file referenced by BASH_ENV. CircleCI sources this file for 'run' each step.
const exportLine = `export PATH="${shimsDir}:${binDir}:$PATH"` + os.EOL;
fs.appendFileSync(process.env.BASH_ENV, exportLine, "utf-8");
ui.writeInformation(`Added shims directory to BASH_ENV for CircleCI.`);
}