From 582647ec90dbc6167f1cd876811d98e46520a2ba Mon Sep 17 00:00:00 2001 From: Zhen Wang <643348094@qq.com> Date: Tue, 4 Jun 2024 14:41:36 +0800 Subject: [PATCH] [MINOR] Check docker-connector and orbstack only for macos (#3743) ### What changes were proposed in this pull request? as title ### Why are the changes needed? Avoid printing abnormal log when building on windows ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? minor fix --- build.gradle.kts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 36affb2c006..ebad6703888 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -728,8 +728,8 @@ fun printMacDockerTip() { } fun checkMacDockerConnector() { - if (OperatingSystem.current().isLinux()) { - // Linux does not require the use of `docker-connector` + if (!OperatingSystem.current().isMacOsX()) { + // Only MacOs requires the use of `docker-connector` return } @@ -764,7 +764,7 @@ fun checkDockerStatus() { } fun checkOrbStackStatus() { - if (OperatingSystem.current().isLinux()) { + if (!OperatingSystem.current().isMacOsX()) { return }