fix: add message about restarting the shell

This commit is contained in:
Amin Yahyaabadi 2021-09-29 19:51:50 -05:00
parent 0712d6f19e
commit 07b2187049
1 changed files with 18 additions and 0 deletions

View File

@ -184,6 +184,24 @@ export async function main(args: string[]): Promise<number> {
errorMessages.forEach((tool) => error(tool))
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
}
// Run main