mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Fix the silly cycle.
This commit is contained in:
parent
d712a14405
commit
c3c43613a8
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ import javax.inject.Inject
|
|||
* Update Kobalt to the latest version.
|
||||
*/
|
||||
class UpdateKobalt @Inject constructor(val github: GithubApi2, val wrapperProperties: KobaltWrapperProperties,
|
||||
val settings: KobaltSettings, val updateKobalt: UpdateKobalt) {
|
||||
val settings: KobaltSettings) {
|
||||
fun updateKobalt() {
|
||||
val newVersion = github.latestKobaltVersion
|
||||
wrapperProperties.create(newVersion.get())
|
||||
|
@ -47,7 +47,7 @@ class UpdateKobalt @Inject constructor(val github: GithubApi2, val wrapperProper
|
|||
if (latestVersion > current) {
|
||||
if (settings.autoUpdate) {
|
||||
kobaltLog(1, "**** Automatically updating to $latestVersionString")
|
||||
updateKobalt.updateKobalt()
|
||||
updateKobalt()
|
||||
} else if (distFile.exists()) {
|
||||
kobaltLog(1, "**** Version $latestVersionString is installed, you can switch to it with " +
|
||||
"./kobaltw --update")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue