From 4b0822e3687f6421536ebedbd2d1c484b7215aae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Sch=C3=B6n?= Date: Thu, 15 Oct 2020 12:10:40 +0200 Subject: [PATCH] fixed check to determine if we are in wsl2 --- lib/vagrant-hostmanager/hosts_file/updater.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-hostmanager/hosts_file/updater.rb b/lib/vagrant-hostmanager/hosts_file/updater.rb index 2ee2ad9..6048905 100644 --- a/lib/vagrant-hostmanager/hosts_file/updater.rb +++ b/lib/vagrant-hostmanager/hosts_file/updater.rb @@ -208,7 +208,7 @@ def self.windows? end def self.wsl? - defined?(ENV['WSLENV']) + ENV.include?('WSLENV') end require 'win32ole' if windows?