From a17412e1f1c829dd6d085b4849dae4ca571fd16b Mon Sep 17 00:00:00 2001 From: Roman / Linnea Gräf Date: Tue, 22 Nov 2022 20:22:20 +0100 Subject: 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 --- buildSrc/src/main/kotlin/neubs/versioning.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'buildSrc/src') 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") } -- cgit