dev-cmd/bump-formula-pr: allow --version for version formatting changes
This commit is contained in:
parent
f9e49a89ab
commit
b500aee799
@ -392,7 +392,7 @@ module Homebrew
|
||||
resource = Resource.new
|
||||
resource.url(url, specs)
|
||||
resource.owner = Resource.new(formula.name)
|
||||
forced_version = new_version && new_version != resource.version
|
||||
forced_version = new_version && new_version != resource.version.to_s
|
||||
resource.version = new_version if forced_version
|
||||
odie "Couldn't identify version, specify it using `--version=`." if resource.version.blank?
|
||||
[resource.fetch, forced_version]
|
||||
|
Loading…
x
Reference in New Issue
Block a user