Modern Apps git

← xtool.git

Create sdks directory if needed

Commit
307df68794d598ee717ff27a4c1c71446698ed40
Author
Kabir Oberai <[email protected]>
When
2025-05-08 18:11 UTC (1 year ago)
Parents
40162a4

Diff

Sources/XToolSupport/SDKCommand.swift
diff --git a/Sources/XToolSupport/SDKCommand.swift b/Sources/XToolSupport/SDKCommand.swiftindex 464fa96..69f819e 100644--- a/Sources/XToolSupport/SDKCommand.swift+++ b/Sources/XToolSupport/SDKCommand.swift@@ -134,6 +134,7 @@ struct DarwinSDK {         if targetURL.exists {             throw Console.Error("Darwin SDK is already installed at '\(targetURL.path)'. Please remove it first.")         }+        try? FileManager.default.createDirectory(at: sdksDir, withIntermediateDirectories: true)         try FileManager.default.moveItem(at: url, to: targetURL)         guard let sdk = DarwinSDK(bundle: targetURL) else {             throw Console.Error("Darwin SDK failed to install")