Attempt full path to powershell as last resort in WSL

This commit is contained in:
Chris Roberts 2018-06-14 16:53:50 -07:00
parent 5384c037b7
commit 5357727350
1 changed files with 5 additions and 1 deletions

View File

@ -27,7 +27,11 @@ module Vagrant
@_powershell_executable += ".exe"
if Which.which(@_powershell_executable).nil?
@_powershell_executable = nil
@_powershell_executable = "/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe"
if Which.which(@_powershell_executable).nil?
@_powershell_executable = nil
end
end
else
@_powershell_executable = nil