From 79581df71ba76b7f9604a261fd7e898a49711457 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 12 Feb 2014 15:01:12 -0800 Subject: [PATCH] core: chomp the version so we can echo into it --- lib/vagrant/environment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index d1d369125..d302a986e 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -525,7 +525,7 @@ module Vagrant # upgrade it. Otherwise, we just mark that its the current version. version_file = @home_path.join("setup_version") if version_file.file? - version = version_file.read + version = version_file.read.chomp if version > CURRENT_SETUP_VERSION raise Errors::HomeDirectoryLaterVersion end