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

Fix update.

This commit is contained in:
Cedric Beust 2015-10-08 03:01:27 -07:00
parent 482cf3d16d
commit bc74d8677f

View file

@ -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())
}
}