mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 20:20:49 +00:00
Some modifications
This commit is contained in:
parent
3c18ad76f7
commit
5de43c1bf2
1 changed files with 2 additions and 2 deletions
|
|
@ -160,8 +160,8 @@ function modifyPathForCi(shimsDir, binDir) {
|
||||||
|
|
||||||
if (process.env.BASH_ENV) {
|
if (process.env.BASH_ENV) {
|
||||||
// In CircleCI, persisting PATH across steps is done by appending shell exports
|
// 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.
|
// to the file referenced by BASH_ENV. CircleCI sources this file for 'run' each step.
|
||||||
const exportLine = `export PATH=\"${shimsDir}:${binDir}:$PATH\"` + os.EOL;
|
const exportLine = `export PATH="${shimsDir}:${binDir}:$PATH"` + os.EOL;
|
||||||
fs.appendFileSync(process.env.BASH_ENV, exportLine, "utf-8");
|
fs.appendFileSync(process.env.BASH_ENV, exportLine, "utf-8");
|
||||||
ui.writeInformation(`Added shims directory to BASH_ENV for CircleCI.`);
|
ui.writeInformation(`Added shims directory to BASH_ENV for CircleCI.`);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue