Skip to content

Commit

Permalink
fixed check to determine if we are in wsl2
Browse files Browse the repository at this point in the history
  • Loading branch information
vafschoen committed Oct 15, 2020
1 parent f4c92c9 commit 4b0822e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant-hostmanager/hosts_file/updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def self.windows?
end

def self.wsl?
defined?(ENV['WSLENV'])
ENV.include?('WSLENV')
end

require 'win32ole' if windows?
Expand Down

0 comments on commit 4b0822e

Please sign in to comment.