Skip to content

Commit

Permalink
Relax version verification
Browse files Browse the repository at this point in the history
Signed-off-by: Caio Amaral <[email protected]>
  • Loading branch information
caioaamaral committed Apr 8, 2021
1 parent 027ae35 commit e473b66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ign.in
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ if ARGV.include?('--force-version')
# Sanity check: Verify if we have the command for the specified version.
found = false
commands[ARGV[0]].each_with_index do |version, index|
next unless version.first.eql?(required_version)
required_arr = required_version.split('.')
version_arr = version.first.split('.')
next unless required_arr.zip(version_arr).map {|required, current| required == current}.all?
found = true
version_index = index
break
Expand Down

0 comments on commit e473b66

Please sign in to comment.