From bc74d8677ff858b69a6573e5a93291532a7d5231 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Thu, 8 Oct 2015 03:01:27 -0700 Subject: [PATCH] Fix update. --- src/main/kotlin/com/beust/kobalt/misc/UpdateKobalt.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/beust/kobalt/misc/UpdateKobalt.kt b/src/main/kotlin/com/beust/kobalt/misc/UpdateKobalt.kt index 70329323..773d1e23 100644 --- a/src/main/kotlin/com/beust/kobalt/misc/UpdateKobalt.kt +++ b/src/main/kotlin/com/beust/kobalt/misc/UpdateKobalt.kt @@ -10,7 +10,7 @@ import java.io.File public class UpdateKobalt @Inject constructor(val http: Http, val github: GithubApi) { fun updateKobalt() { val newVersion = github.latestKobaltVersion - KFiles.saveFile(File("kobalt/wrapper/kobalt-wrapper.properties"), "kobalt.version=$newVersion") + KFiles.saveFile(File("kobalt/wrapper/kobalt-wrapper.properties"), "kobalt.version=${newVersion.get()}") com.beust.kobalt.wrapper.main(arrayOf()) } }