From 93e676d0fd4fafd349031379616ba36f664107a6 Mon Sep 17 00:00:00 2001 From: Tomas Barton Date: Wed, 2 Sep 2020 21:55:40 +0200 Subject: [PATCH] Remove leading 'v' character from version string --- spec/acceptance/class_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/acceptance/class_spec.rb b/spec/acceptance/class_spec.rb index 54f68602..e2662b94 100644 --- a/spec/acceptance/class_spec.rb +++ b/spec/acceptance/class_spec.rb @@ -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