1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

Used OperatingSystem.current() instead of getting system property.

This commit is contained in:
Erik C. Thauvin 2017-04-10 22:31:31 -07:00
parent c737fc9a00
commit 54a38c22db

View file

@ -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")