From a20d28f343a8f42a388037cfc41712e6e468ffe1 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Thu, 30 Mar 2023 16:38:59 -0700 Subject: [PATCH] brew style --fix --- Library/Homebrew/os/mac/sdk.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/os/mac/sdk.rb b/Library/Homebrew/os/mac/sdk.rb index 9068964736..734c90c401 100644 --- a/Library/Homebrew/os/mac/sdk.rb +++ b/Library/Homebrew/os/mac/sdk.rb @@ -161,7 +161,8 @@ module OS # Xcode.prefix is pretty smart, so let's look inside to find the sdk sdk_prefix = "#{Xcode.prefix}/Platforms/MacOSX.platform/Developer/SDKs" # Finally query Xcode itself (this is slow, so check it last) - sdk_platform_path = Utils.popen_read(T.must(DevelopmentTools.locate("xcrun")), "--show-sdk-platform-path").chomp + sdk_platform_path = Utils.popen_read(T.must(DevelopmentTools.locate("xcrun")), + "--show-sdk-platform-path").chomp sdk_prefix = File.join(sdk_platform_path, "Developer", "SDKs") unless File.directory? sdk_prefix sdk_prefix