dev-cmd/bump: check if Repology output is a version first

This commit is contained in:
Dawid Dziurla 2022-12-05 16:20:35 +01:00
parent b8a505d0d8
commit 33f5c41cd2
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

View File

@ -270,7 +270,8 @@ module Homebrew
return unless args.open_pr?
if repology_latest > current_version &&
if repology_latest.is_a?(Version) &&
repology_latest > current_version &&
repology_latest > livecheck_latest &&
formula_or_cask.livecheckable?
puts "#{title_name} was not bumped to the Repology version because it's livecheckable."