Skip to content

Commit f278ec4

Browse files
Update tmpfile for swiftly pkg to use platform file extension (#552)
1 parent 4f3a458 commit f278ec4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/Swiftly/SelfUpdate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ struct SelfUpdate: SwiftlyCommand {
113113

114114
guard let version, let downloadURL else { fatalError() }
115115

116-
let tmpFile = fs.mktemp()
116+
let tmpFile = fs.mktemp(ext: ".\(Swiftly.currentPlatform.toolchainFileExtension)")
117117
try await fs.create(file: tmpFile, contents: nil)
118118
return try await fs.withTemporary(files: tmpFile) {
119119
let animation = PercentProgressAnimation(

0 commit comments

Comments
 (0)