Merge pull request #473 from ebobby/fix-redir3

Fix redir version fetching.
This commit is contained in:
Virgil Dupras 2018-09-26 19:53:14 -04:00 committed by GitHub
commit a112b072aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,7 @@ module Vagrant
def redir_version
stdout, stderr, _ = Open3.capture3 "redir --version"
# For some weird reason redir printed version information in STDERR prior to 3.2
version = stdout || stderr
version = stdout.empty? ? stderr : stdout
version.split('.')[0].to_i
end