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 5508505 commit 5444f46Copy full SHA for 5444f46
Sources/SwiftlyCore/Platform.swift
@@ -377,6 +377,11 @@ extension Platform {
377
return
378
}
379
380
+ // If swiftly is symlinked then we leave it where it is, such as in a homebrew installation.
381
+ if let _ = try? FileManager.default.destinationOfSymbolicLink(atPath: cmdAbsolute) {
382
+ return
383
+ }
384
+
385
// Proceed to installation only if we're in the user home directory, or a non-system location.
386
let userHome = fs.home
387
0 commit comments