lib/vagrant/util/platform.rb in vagrant-unbundled-2.2.7.0 vs lib/vagrant/util/platform.rb in vagrant-unbundled-2.2.8.0

- old
+ new

@@ -211,14 +211,21 @@ # @return [String] def cygwin_windows_path(path) return path if !cygwin? # Replace all "\" with "/", otherwise cygpath doesn't work. - path = path.gsub("\\", "/") + path = unix_windows_path(path) # Call out to cygpath and gather the result process = Subprocess.execute("cygpath", "-w", "-l", "-a", path.to_s) return process.stdout.chomp + end + + # This takes any path and converts Windows-style path separators + # to Unix-like path separators. + # @return [String] + def unix_windows_path(path) + path.gsub("\\", "/") end # This checks if the filesystem is case sensitive. This is not a # 100% correct check, since it is possible that the temporary # directory runs a different filesystem than the root directory.