mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-25 07:57:12 -07:00
Used OperatingSystem.current() instead of getting system property.
This commit is contained in:
parent
c737fc9a00
commit
54a38c22db
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue