mirror of https://github.com/aminya/setup-cpp
fix: fix addSystemEnv on Linux/Mac
This commit is contained in:
parent
e5f4cd37ed
commit
3a91e6f67a
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue