Skip to content

Commit

Permalink
Merge pull request #14210 from dawidd6/bump-check-is-a-version
Browse files Browse the repository at this point in the history
dev-cmd/bump: check if Repology output is a version first
  • Loading branch information
dawidd6 committed Dec 6, 2022
2 parents 6cf955c + 33f5c41 commit a4d2aa8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/dev-cmd/bump.rb
Expand Up @@ -270,7 +270,8 @@ def retrieve_and_display_info_and_open_pr(formula_or_cask, name, repositories, a

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."
Expand Down

0 comments on commit a4d2aa8

Please sign in to comment.