mirror of
https://github.com/munki/munki.git
synced 2026-02-12 18:19:54 -06:00
Change displayStagedOSInstallerInfo() to avoid getting the same info twice
This commit is contained in:
@@ -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:")
|
||||
|
||||
Reference in New Issue
Block a user