Skip to content

Commit

Permalink
Remove leading 'v' character from version string
Browse files Browse the repository at this point in the history
  • Loading branch information
deric committed Sep 2, 2020
1 parent a812f93 commit 93e676d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
end

def fail2ban_is_at_least(version)
res = shell('fail2ban-server --version | awk \'/Fail2Ban v/ {print $2; EXIT}\'')
res = shell('fail2ban-server --version | awk \'/Fail2Ban v/ {print substr($2,2); EXIT}\'')
Gem::Version.new(res.stdout) >= Gem::Version.new(version)
end

Expand Down

0 comments on commit 93e676d

Please sign in to comment.