mirror of
https://github.com/alibaba/arthas.git
synced 2026-10-21 05:51:38 +00:00
fix OSUtils
This commit is contained in:
@@ -12,13 +12,13 @@ public class OSUtils {
|
||||
|
||||
static PlatformEnum platform;
|
||||
static {
|
||||
if (OPERATING_SYSTEM_NAME.startsWith("Linux")) {
|
||||
if (OPERATING_SYSTEM_NAME.startsWith("linux")) {
|
||||
platform = PlatformEnum.LINUX;
|
||||
} else if (OPERATING_SYSTEM_NAME.startsWith("Mac") || OPERATING_SYSTEM_NAME.startsWith("Darwin")) {
|
||||
} else if (OPERATING_SYSTEM_NAME.startsWith("mac") || OPERATING_SYSTEM_NAME.startsWith("darwin")) {
|
||||
platform = PlatformEnum.MACOSX;
|
||||
} else if (OPERATING_SYSTEM_NAME.startsWith("Mac") || OPERATING_SYSTEM_NAME.startsWith("Darwin")) {
|
||||
} else if (OPERATING_SYSTEM_NAME.startsWith("mac") || OPERATING_SYSTEM_NAME.startsWith("darwin")) {
|
||||
platform = PlatformEnum.MACOSX;
|
||||
} else if (OPERATING_SYSTEM_NAME.startsWith("Windows")) {
|
||||
} else if (OPERATING_SYSTEM_NAME.startsWith("windows")) {
|
||||
platform = PlatformEnum.WINDOWS;
|
||||
} else {
|
||||
platform = PlatformEnum.UNKNOWN;
|
||||
|
||||
Reference in New Issue
Block a user