This commit is contained in:
parent
4d3e0cac62
commit
7a94eba0b4
|
@ -496,10 +496,14 @@ module VagrantPlugins
|
||||||
|
|
||||||
def share_folders(folders)
|
def share_folders(folders)
|
||||||
folders.each do |folder|
|
folders.each do |folder|
|
||||||
|
hostpath = folder[:hostpath]
|
||||||
|
if Vagrant::Util::Platform.windows?
|
||||||
|
hostpath = Vagrant::Util::Platform.windows_unc_path(hostpath)
|
||||||
|
end
|
||||||
args = ["--name",
|
args = ["--name",
|
||||||
folder[:name],
|
folder[:name],
|
||||||
"--hostpath",
|
"--hostpath",
|
||||||
folder[:hostpath]]
|
hostpath]
|
||||||
args << "--transient" if folder.key?(:transient) && folder[:transient]
|
args << "--transient" if folder.key?(:transient) && folder[:transient]
|
||||||
|
|
||||||
# Enable symlinks on the shared folder
|
# Enable symlinks on the shared folder
|
||||||
|
|
Loading…
Reference in New Issue