From 54a38c22db65e9cf4fb34d6f9550a4fb47499e9a Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Mon, 10 Apr 2017 22:31:31 -0700 Subject: [PATCH] Used OperatingSystem.current() instead of getting system property. --- src/test/kotlin/com/beust/kobalt/VerifyKobaltZipTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/kotlin/com/beust/kobalt/VerifyKobaltZipTest.kt b/src/test/kotlin/com/beust/kobalt/VerifyKobaltZipTest.kt index fa4cb356..03278f4e 100644 --- a/src/test/kotlin/com/beust/kobalt/VerifyKobaltZipTest.kt +++ b/src/test/kotlin/com/beust/kobalt/VerifyKobaltZipTest.kt @@ -38,7 +38,7 @@ class VerifyKobaltZipTest : KobaltTest() { throw KobaltException("kobaltw has wrong line endings") } } - if (System.getProperty("os.name").contains("Windows")) { + if (OperatingSystem.current().isWindows()) { warn("Can't determine if kobaltw is executable under Windows") } else if (!Files.isExecutable(Paths.get("dist/kobaltw"))) { throw KobaltException("kobaltw has invalid permissions")