Only expand path if not in windows format
This commit is contained in:
parent
cdab45424e
commit
c5c63d291d
|
@ -392,8 +392,8 @@ module Vagrant
|
||||||
# @param [String, Pathname] path Path to convert
|
# @param [String, Pathname] path Path to convert
|
||||||
# @return [String]
|
# @return [String]
|
||||||
def wsl_to_windows_path(path)
|
def wsl_to_windows_path(path)
|
||||||
path = File.expand_path(path.to_s)
|
|
||||||
if wsl? && wsl_windows_access? && !path.match(/^[a-zA-Z]:/)
|
if wsl? && wsl_windows_access? && !path.match(/^[a-zA-Z]:/)
|
||||||
|
path = File.expand_path(path.to_s)
|
||||||
if wsl_path?(path)
|
if wsl_path?(path)
|
||||||
parts = path.split("/")
|
parts = path.split("/")
|
||||||
parts.delete_if(&:empty?)
|
parts.delete_if(&:empty?)
|
||||||
|
|
Loading…
Reference in New Issue