Write homerc both to USERPROFILE and HOME on Windows
This commit is contained in:
parent
3e0beb3116
commit
d23b2a7513
6 changed files with 29 additions and 19 deletions
13
index.js
13
index.js
|
|
@ -28,13 +28,12 @@ async function setupBazel () {
|
|||
}
|
||||
|
||||
async function setupBazelrc () {
|
||||
fs.writeFileSync(
|
||||
config.paths.bazelrc,
|
||||
`startup --output_base=${config.paths.bazelOutputBase}\n`
|
||||
)
|
||||
|
||||
for (const line of config.bazelrc) {
|
||||
fs.appendFileSync(config.paths.bazelrc, `${line}\n`)
|
||||
for (const bazelrcPath of config.paths.bazelrc) {
|
||||
fs.writeFileSync(
|
||||
bazelrcPath,
|
||||
`startup --output_base=${config.paths.bazelOutputBase}\n`
|
||||
)
|
||||
fs.appendFileSync(bazelrcPath, config.bazelrc.join("\n"))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue