Skip to content

Commit e41fd13

Browse files
committed
Honour the quiet parameter for runProgram and runProgramEnv in the release script
1 parent 134b46e commit e41fd13

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Tools/build-swiftly-release/BuildSwiftlyRelease.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public struct Error: LocalizedError {
2323
}
2424

2525
public func runProgramEnv(_ args: String..., quiet: Bool = false, env: [String: String]?) throws {
26-
print("\(args.joined(separator: " "))")
26+
if !quiet { print("\(args.joined(separator: " "))") }
27+
2728
let process = Process()
2829
process.executableURL = URL(fileURLWithPath: "/usr/bin/env")
2930
process.arguments = args
@@ -51,7 +52,8 @@ public func runProgramEnv(_ args: String..., quiet: Bool = false, env: [String:
5152
}
5253

5354
public func runProgram(_ args: String..., quiet: Bool = false) throws {
54-
print("\(args.joined(separator: " "))")
55+
if !quiet { print("\(args.joined(separator: " "))") }
56+
5557
let process = Process()
5658
process.executableURL = URL(fileURLWithPath: "/usr/bin/env")
5759
process.arguments = args

0 commit comments

Comments
 (0)