Skip to content

Commit

Permalink
Merge pull request #1807 from MikeMcQuaid/bump-formula-pr-check-url
Browse files Browse the repository at this point in the history
bump-formula-pr: check for URL presence.
  • Loading branch information
MikeMcQuaid authored Jan 9, 2017
2 parents f7bccee + c276a44 commit df46d62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Library/Homebrew/dev-cmd/bump-formula-pr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def bump_formula_pr
false
elsif !hash_type
odie "#{formula}: no tag/revision specified!"
elsif !new_url
odie "#{formula}: no url specified!"
else
rsrc_url = if requested_spec != :devel && new_url =~ /.*ftpmirror.gnu.*/
new_mirror = new_url.sub "ftpmirror.gnu.org", "ftp.gnu.org/gnu"
Expand Down

0 comments on commit df46d62

Please sign in to comment.