From e473b66d795ce184d3ba89d3c53b3bd3efc4d442 Mon Sep 17 00:00:00 2001 From: Caio Amaral Date: Sun, 21 Mar 2021 19:38:10 -0300 Subject: [PATCH] Relax version verification Signed-off-by: Caio Amaral --- src/ign.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ign.in b/src/ign.in index d45b147..6669e6c 100755 --- a/src/ign.in +++ b/src/ign.in @@ -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