Change displayStagedOSInstallerInfo() to avoid getting the same info twice

This commit is contained in:
Greg Neagle
2024-09-06 15:33:52 -07:00
parent 406af588c2
commit 3ecad60361

View File

@@ -343,9 +343,9 @@ func removeStagedOSInstallerInfo() {
try? FileManager.default.removeItem(atPath: infoPath)
}
func displayStagedOSInstallerInfo() {
// Prints staged macOS installer info and updates ManagedInstallReport.
guard let item = getStagedOSInstallerInfo() else { return }
func displayStagedOSInstallerInfo(info: PlistDict? = nil) {
// Prints staged macOS installer info (if any) and updates ManagedInstallReport.
guard let item = info else { return }
Report.shared.record(item, to: "StagedOSInstaller")
displayInfo("")
displayInfo("The following macOS upgrade is available to install:")