Skip to content

Commit 4b0822e

Browse files
committed
fixed check to determine if we are in wsl2
1 parent f4c92c9 commit 4b0822e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vagrant-hostmanager/hosts_file/updater.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def self.windows?
208208
end
209209

210210
def self.wsl?
211-
defined?(ENV['WSLENV'])
211+
ENV.include?('WSLENV')
212212
end
213213

214214
require 'win32ole' if windows?

0 commit comments

Comments
 (0)