fix: format the final installation message

This commit is contained in:
Amin Yahyaabadi 2022-04-18 02:59:07 -07:00
parent 18911f8ca0
commit 104ee90b0f
1 changed files with 3 additions and 3 deletions

View File

@ -326,15 +326,15 @@ function maybeGetInput(key: string) {
}
function getSuccessMessage(tool: string, installationInfo: InstallationInfo | undefined | void) {
let msg = `${tool} was successfully installed`
let msg = `${tool} was installed successfully:`
if (installationInfo === undefined) {
return msg
}
if ("installDir" in installationInfo) {
msg += `\nThe installation directory is ${installationInfo.installDir}`
msg += `\n- The installation directory is ${installationInfo.installDir}`
}
if (installationInfo.binDir !== "") {
msg += `\nThe binary directory is ${installationInfo.binDir}`
msg += `\n- The binary directory is ${installationInfo.binDir}`
}
return msg
}