Skip to content

Commit

Permalink
return build number again
Browse files Browse the repository at this point in the history
  • Loading branch information
samdeane committed Aug 29, 2024
1 parent 590f1e8 commit 7944ebb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/ReleaseTools/Commands/UpdateBuildCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ struct UpdateBuildCommand: AsyncParsableCommand {
)

if let header = header, let repo = repo {
try await Self.generateHeader(parsed: parsed, header: header, repo: repo)
_ = try await Self.generateHeader(parsed: parsed, header: header, repo: repo)
} else if let plist = plist, let dest = plistDest, let repo = repo {
try await Self.generatePlist(parsed: parsed, source: plist, dest: dest, repo: repo)
} else {
Expand Down Expand Up @@ -103,7 +103,7 @@ struct UpdateBuildCommand: AsyncParsableCommand {
}
}

static func generateHeader(parsed: OptionParser, header: String, repo: String) async throws {
static func generateHeader(parsed: OptionParser, header: String, repo: String) async throws -> String {
let headerURL = URL(fileURLWithPath: header)
let repoURL = URL(fileURLWithPath: repo)

Expand All @@ -115,6 +115,7 @@ struct UpdateBuildCommand: AsyncParsableCommand {
try? FileManager.default.createDirectory(
at: headerURL.deletingLastPathComponent(), withIntermediateDirectories: true)
try header.write(to: headerURL, atomically: true, encoding: .utf8)
return build
}

static func generateConfig(parsed: OptionParser, config: String?) async throws {
Expand Down

0 comments on commit 7944ebb

Please sign in to comment.