cmd/update-report: tweak syntax.

This commit is contained in:
Mike McQuaid 2021-03-24 19:48:49 +00:00 committed by Carlo Cabrera
parent 92a42381df
commit dcfd4c2beb
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -91,7 +91,7 @@ module Homebrew
"git", "-C", HOMEBREW_REPOSITORY, "tag", "--list", "--sort=-version:refname", "*.*"
).lines.first.chomp
new_repository_version = new_tag unless new_tag == old_tag
new_repository_version = new_tag if new_tag != old_tag
end
Homebrew.failed = true if ENV["HOMEBREW_UPDATE_FAILED"]