Skip to content

Commit

Permalink
os.name property is expected to be Mac OS X on Apple computers
Browse files Browse the repository at this point in the history
Signed-off-by: Ceki Gulcu <ceki@qos.ch>
  • Loading branch information
ceki committed Sep 6, 2024
1 parent c45f110 commit fe3bf9d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ static public boolean isJaninoAvailable() {

public static boolean isMacOs() {
String os = System.getProperty("os.name");
// expected value is "Mac OS X"
return os.toLowerCase().contains("mac");
}

Expand Down

0 comments on commit fe3bf9d

Please sign in to comment.