Skip to content

Commit dc82775

Browse files
committed
bugfix: fix for OSTYPE linux-musl which is reported on Alpine Linux.
1 parent 4af8bf6 commit dc82775

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/kscript/app/Kscript.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import org.docopt.DocOptWrapper
1818
* @author Marcin Kuszczak
1919
*/
2020

21-
const val KSCRIPT_VERSION = "4.0.3"
21+
const val KSCRIPT_VERSION = "4.0.4"
2222

2323
fun main(args: Array<String>) {
2424
try {

src/main/kotlin/kscript/app/model/OsType.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package kscript.app.model
22

33
enum class OsType(val osName: String) {
4-
LINUX("linux-gnu"), DARWIN("darwin"), WINDOWS("windows"), CYGWIN("cygwin"), MSYS("msys"), FREEBSD("freebsd");
4+
LINUX("linux"), DARWIN("darwin"), WINDOWS("windows"), CYGWIN("cygwin"), MSYS("msys"), FREEBSD("freebsd");
55

66
fun isUnixLike() = (this == LINUX || this == DARWIN || this == FREEBSD)
77
fun isWindowsLike() = (this == WINDOWS)

0 commit comments

Comments
 (0)