aboutsummaryrefslogtreecommitdiff
path: root/buildSrc
diff options
context:
space:
mode:
Diffstat (limited to 'buildSrc')
-rw-r--r--buildSrc/src/main/kotlin/neubs/versioning.kt4
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")
}