diff --git a/Sources/mas/Commands/Upgrade.swift b/Sources/mas/Commands/Upgrade.swift index 41054d2..4b3740b 100644 --- a/Sources/mas/Commands/Upgrade.swift +++ b/Sources/mas/Commands/Upgrade.swift @@ -55,7 +55,7 @@ extension Mas { appLibrary: AppLibrary, storeSearch: StoreSearch ) throws -> [(SoftwareProduct, SearchResult)] { - let apps: [SoftwareProduct] = + let apps = appIDs.isEmpty ? appLibrary.installedApps : appIDs.compactMap { appID in