Skip to content

Commit 5688b8f

Browse files
committed
Add -L to curl command for redirects
1 parent a285770 commit 5688b8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/build-swiftly-release/BuildSwiftlyRelease.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ struct BuildSwiftlyRelease: AsyncParsableCommand {
287287
try? FileManager.default.createDirectory(atPath: pkgConfigPath, withIntermediateDirectories: true)
288288

289289
try? FileManager.default.removeItem(atPath: libArchivePath)
290-
try runProgram(curl, "-o", "\(buildCheckoutsDir + "/libarchive-\(libArchiveVersion).tar.gz")", "--remote-name", "--location", "https://github.com/libarchive/libarchive/releases/download/v\(libArchiveVersion)/libarchive-\(libArchiveVersion).tar.gz")
290+
try runProgram(curl, "-L", "-o", "\(buildCheckoutsDir + "/libarchive-\(libArchiveVersion).tar.gz")", "--remote-name", "--location", "https://github.com/libarchive/libarchive/releases/download/v\(libArchiveVersion)/libarchive-\(libArchiveVersion).tar.gz")
291291
let libArchiveTarShaActual = try await runProgramOutput(sha256sum, "\(buildCheckoutsDir)/libarchive-\(libArchiveVersion).tar.gz")
292292
guard let libArchiveTarShaActual, libArchiveTarShaActual.starts(with: libArchiveTarSha) else {
293293
let shaActual = libArchiveTarShaActual ?? "none"

0 commit comments

Comments
 (0)