mirror of https://github.com/aminya/setup-cpp
fix: add message about restarting the shell
This commit is contained in:
parent
0712d6f19e
commit
07b2187049
18
src/main.ts
18
src/main.ts
|
@ -184,6 +184,24 @@ export async function main(args: string[]): Promise<number> {
|
||||||
errorMessages.forEach((tool) => error(tool))
|
errorMessages.forEach((tool) => error(tool))
|
||||||
|
|
||||||
core.info("setup_cpp finished")
|
core.info("setup_cpp finished")
|
||||||
|
|
||||||
|
if (!isCI()) {
|
||||||
|
switch (process.platform) {
|
||||||
|
case "win32": {
|
||||||
|
core.info("Run `RefreshEnv.cmd` or restart your shell to update the environment.")
|
||||||
|
break
|
||||||
|
}
|
||||||
|
case "linux":
|
||||||
|
case "darwin": {
|
||||||
|
core.info("Run `source ~/.profile` or restart your shell to update the environment.")
|
||||||
|
break
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
// nothing
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message
|
return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message
|
||||||
}
|
}
|
||||||
// Run main
|
// Run main
|
||||||
|
|
Loading…
Reference in New Issue