We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5444f46 commit f5bd75aCopy full SHA for f5bd75a
Sources/SwiftlyCore/Platform.swift
@@ -450,6 +450,13 @@ extension Platform {
450
return swiftlyHomeBin
451
}
452
453
+ // If swiftly is a symlink then something else, such as homebrew, is managing it.
454
+ if cmdAbsolute != nil {
455
+ if let _ = try? FileManager.default.destinationOfSymbolicLink(atPath: cmdAbsolute!) {
456
+ return cmdAbsolute
457
+ }
458
459
+
460
let systemRoots: [FilePath] = ["/usr", "/opt", "/bin"]
461
462
// If we are system managed then we know where swiftly should be.
0 commit comments