Commit 204fcc2e authored by David Hrbáč's avatar David Hrbáč

Check version with master

parent 897e5502
Pipeline #2119 passed with stages
in 58 seconds
......@@ -9,9 +9,15 @@ response = Faraday.get "{A
fedora_j = JSON.parse( response.body )['projects']
fedora = { |h| h['name'] == ARGV[0].downcase }.first['version']
response = Faraday.get ""
response = Faraday.get ""
it4i = JSON.parse( response.body )['projects'][ARGV[0]]
it4i_short = it4i.split('-')[0]
puts "IT4Innovations: #{it4i_short} (#{it4i})"
puts "Upstream : #{fedora}"
if it4i_short.eql? fedora
puts "Identical"
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