Skip to content

Commit f1542a6

Browse files
committed
Fix if checks for OS and arch
1 parent 1d92457 commit f1542a6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Sources/Swiftly/SelfUpdate.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,14 @@ struct SelfUpdate: SwiftlyCommand {
5252

5353
#if os(macOS)
5454
downloadURL = URL(string: "https://download.swift.org/swiftly/darwin/swiftly-\(version).pkg")
55-
#elseif os(Linux)
55+
#endif
56+
57+
#f os(Linux)
5658
#if arch(x86_64)
5759
downloadURL = URL(string: "https://download.swift.org/swiftly/linux/swiftly-\(version)-x86_64.tar.gz")
5860
#elseif arch(arm64)
5961
downloadURL = URL(string: "https://download.swift.org/swiftly/linux/swiftly-\(version)-aarch64.tar.gz")
60-
#else
61-
#error("Processor architecture is unsupported")
6262
#endif
63-
#error("Operating system is unsupported")
6463
#endif
6564

6665
guard version > SwiftlyCore.version else {

0 commit comments

Comments
 (0)