also strip \r to work around windows file ending strangeness
This commit is contained in:
parent
9fe1366eeb
commit
bd3339f1f9
|
@ -47,7 +47,7 @@ type ESX5Driver struct {
|
|||
|
||||
func (d *ESX5Driver) Clone(dst, src string, linked bool) error {
|
||||
|
||||
linesToArray := func(lines string) []string { return strings.Split(strings.Trim(lines, "\n"), "\n") }
|
||||
linesToArray := func(lines string) []string { return strings.Split(strings.Trim(lines, "\r\n"), "\n") }
|
||||
|
||||
d.SetOutputDir(path.Dir(filepath.ToSlash(dst)))
|
||||
srcVmx := d.datastorePath(src)
|
||||
|
|
Loading…
Reference in New Issue