fix: fix addSystemEnv on Linux/Mac

This commit is contained in:
Amin Yahyaabadi 2022-01-19 11:31:11 -08:00
parent e5f4cd37ed
commit 3a91e6f67a
3 changed files with 3 additions and 3 deletions

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -34,7 +34,7 @@ function addEnvSystem(name: string, val: string | undefined) {
case "linux": case "linux":
case "darwin": { case "darwin": {
const profile_path = untildify("~/.profile") const profile_path = untildify("~/.profile")
appendFileSync(profile_path, `\nexport ${name}="${val}\n`) appendFileSync(profile_path, `\nexport ${name}="${val}"\n`)
core.info(`${name}="${val} was added to "${profile_path}"`) core.info(`${name}="${val} was added to "${profile_path}"`)
return return
} }