Commit 30554f85 authored by David Hrbáč's avatar David Hrbáč

Make sure to get the proper project at upstream

parent e4441ac5
Pipeline #2123 passed with stages
in 1 minute
......@@ -2,10 +2,12 @@ require 'faraday'
require 'json'
#print ARGV[0].downcase
puts "Checking the ver for #{ARGV[0]}"
response = Faraday.get "{ARGV[0].downcase}"
fedora = JSON.parse( response.body )['projects'][0]['version']
fedora_j = JSON.parse( response.body )['projects']
fedora = { |h| h['name'] == ARGV[0].downcase }.first['version']
response = Faraday.get ""
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment