mirror of https://github.com/aminya/setup-cpp
fix: format the final installation message
This commit is contained in:
parent
18911f8ca0
commit
104ee90b0f
|
@ -326,15 +326,15 @@ function maybeGetInput(key: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getSuccessMessage(tool: string, installationInfo: InstallationInfo | undefined | void) {
|
function getSuccessMessage(tool: string, installationInfo: InstallationInfo | undefined | void) {
|
||||||
let msg = `${tool} was successfully installed`
|
let msg = `✅ ${tool} was installed successfully:`
|
||||||
if (installationInfo === undefined) {
|
if (installationInfo === undefined) {
|
||||||
return msg
|
return msg
|
||||||
}
|
}
|
||||||
if ("installDir" in installationInfo) {
|
if ("installDir" in installationInfo) {
|
||||||
msg += `\nThe installation directory is ${installationInfo.installDir}`
|
msg += `\n- The installation directory is ${installationInfo.installDir}`
|
||||||
}
|
}
|
||||||
if (installationInfo.binDir !== "") {
|
if (installationInfo.binDir !== "") {
|
||||||
msg += `\nThe binary directory is ${installationInfo.binDir}`
|
msg += `\n- The binary directory is ${installationInfo.binDir}`
|
||||||
}
|
}
|
||||||
return msg
|
return msg
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue