From 37fd267d4e0c1c85cb348ce1e5daec41e3f06eda Mon Sep 17 00:00:00 2001 From: "holgerbrandl@gmail.com" Date: Wed, 18 May 2022 20:07:38 +0200 Subject: [PATCH 1/2] 4.0.2 release --- NEWS.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 139218dc..fd706fa9 100644 --- a/NEWS.md +++ b/NEWS.md @@ -16,7 +16,9 @@ Major Enhancements Minor Enhancements -## 4.0.0 +## 4.0.2 + +Released 2022-05-18 Rewrite by https://github.com/aartiPl From c542f4739d7583b757593e74ec6b501c0766acf3 Mon Sep 17 00:00:00 2001 From: Aleksandr Kolodiazhnyi Date: Fri, 20 May 2022 15:14:33 +0300 Subject: [PATCH 2/2] bugfix: issue #356 - fix ostype comparison --- src/main/kotlin/kscript/app/model/OsType.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/kscript/app/model/OsType.kt b/src/main/kotlin/kscript/app/model/OsType.kt index 0a83f25e..10c99a2f 100644 --- a/src/main/kotlin/kscript/app/model/OsType.kt +++ b/src/main/kotlin/kscript/app/model/OsType.kt @@ -9,6 +9,6 @@ enum class OsType(val osName: String) { companion object { fun findOrThrow(name: String) = - values().find { it.osName.equals(name, true) } ?: throw IllegalArgumentException("Unsupported OS: $name") + values().find { name.contains(it.osName, true) } ?: throw IllegalArgumentException("Unsupported OS: $name") } }