1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 16:28:12 -07:00

Clarify message.

This commit is contained in:
Cedric Beust 2016-02-21 21:04:29 +04:00
parent 102afce83c
commit 792f36f116

View file

@ -44,7 +44,8 @@ public class UpdateKobalt @Inject constructor(val github: GithubApi, val wrapper
val distFile = File(KFiles.joinDir(KFiles.distributionsDir, latestVersionString))
if (latestVersion > current) {
if (distFile.exists()) {
log(1, "**** Version $latestVersionString is installed")
log(1, "**** Version $latestVersionString is installed, you can switch to it with " +
"./kobaltw --update")
} else {
listOf("", "New Kobalt version available: $latestVersionString",
"To update, run ./kobaltw --update", "").forEach {