diff options
author | Roman / Linnea Gräf <roman.graef@gmail.com> | 2022-11-22 20:22:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-22 20:22:20 +0100 |
commit | a17412e1f1c829dd6d085b4849dae4ca571fd16b (patch) | |
tree | aa7b0edebbe8f027d2e093fb534c35fb16a3ec2f /buildSrc/src/main/kotlin/neubs | |
parent | 3d37cee20ddcf92b47144cb1e3ae25785a5e8bc2 (diff) | |
download | NotEnoughUpdates-a17412e1f1c829dd6d085b4849dae4ca571fd16b.tar.gz NotEnoughUpdates-a17412e1f1c829dd6d085b4849dae4ca571fd16b.tar.bz2 NotEnoughUpdates-a17412e1f1c829dd6d085b4849dae4ca571fd16b.zip |
Terrible Kotlin! (#435)
* Terrible Kotlin!
You are unloved and everybody dies
* Load Kotlin via a Tweaker
* Fix version comparison
* Allow user to prevent loading of Kotlin libraries using system properties
* Remove testing files
Diffstat (limited to 'buildSrc/src/main/kotlin/neubs')
-rw-r--r-- | buildSrc/src/main/kotlin/neubs/versioning.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildSrc/src/main/kotlin/neubs/versioning.kt b/buildSrc/src/main/kotlin/neubs/versioning.kt index 254e0012..9294e164 100644 --- a/buildSrc/src/main/kotlin/neubs/versioning.kt +++ b/buildSrc/src/main/kotlin/neubs/versioning.kt @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 NotEnoughUpdates contributors + * Copyright (C) 2022 Linnea Gräf * * This file is part of NotEnoughUpdates. * @@ -44,7 +44,7 @@ fun Project.setVersionFromEnvironment(baseVersion: String) { standardOutput = gitDiffStdout isIgnoreExitValue = true } - if (gitDiffStdout.toByteArray().isNotEmpty()) { + if (gitDiffResult.exitValue == 0 && gitDiffStdout.toByteArray().isNotEmpty()) { buildExtra.add("dirty") } |