diff --git a/mas-cli/Commands/Upgrade.swift b/mas-cli/Commands/Upgrade.swift index 770de95..7c3693d 100644 --- a/mas-cli/Commands/Upgrade.swift +++ b/mas-cli/Commands/Upgrade.swift @@ -24,10 +24,10 @@ struct UpgradeCommand: CommandProtocol { let appIds: [UInt64] appIds = apps.flatMap { - if let appId = softwareMap.appIdWithProductName($0) { + if let appId = UInt64($0) { return appId } - if let appId = UInt64($0) { + if let appId = softwareMap.appIdWithProductName($0) { return appId } return nil