core: chomp the version so we can echo into it

This commit is contained in:
Mitchell Hashimoto 2014-02-12 15:01:12 -08:00
parent 2c72c32df0
commit 79581df71b
1 changed files with 1 additions and 1 deletions

View File

@ -525,7 +525,7 @@ module Vagrant
# upgrade it. Otherwise, we just mark that its the current version. # upgrade it. Otherwise, we just mark that its the current version.
version_file = @home_path.join("setup_version") version_file = @home_path.join("setup_version")
if version_file.file? if version_file.file?
version = version_file.read version = version_file.read.chomp
if version > CURRENT_SETUP_VERSION if version > CURRENT_SETUP_VERSION
raise Errors::HomeDirectoryLaterVersion raise Errors::HomeDirectoryLaterVersion
end end