aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/leap_cli/commands/vagrant.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/vagrant.rb b/lib/leap_cli/commands/vagrant.rb
index e674c75..5248bfd 100644
--- a/lib/leap_cli/commands/vagrant.rb
+++ b/lib/leap_cli/commands/vagrant.rb
@@ -130,7 +130,7 @@ module LeapCli; module Commands
end
def vagrant_version
- minor_version = `vagrant --version|cut -d' ' -f 3 | cut -d'.' -f 2`.to_i
+ minor_version = `vagrant --version | rev | cut -d'.' -f 2`.to_i
version = case minor_version
when 1..9 then 2
when 0 then 1