From efafed4f378b8398fd5a6c79df3ab62508d0778e Mon Sep 17 00:00:00 2001 From: Taliesin Sisson Date: Thu, 16 Jul 2015 20:48:08 +0100 Subject: [PATCH] Copy the folder structure correctly --- powershell/hyperv/hyperv.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/powershell/hyperv/hyperv.go b/powershell/hyperv/hyperv.go index efd83c684..6a512d1f4 100644 --- a/powershell/hyperv/hyperv.go +++ b/powershell/hyperv/hyperv.go @@ -197,9 +197,9 @@ func CopyExportedVirtualMachine(expPath string, outputPath string, vhdDir string var script = ` param([string]$srcPath, [string]$dstPath, [string]$vhdDirName, [string]$vmDir) -Copy-Item -Path $srcPath/$vhdDirName -Destination $dstPath -recurse -Copy-Item -Path $srcPath/$vmDir -Destination $dstPath -Copy-Item -Path $srcPath/$vmDir/*.xml -Destination $dstPath/$vmDir +Move-Item -Path $srcPath/*.* -Destination $dstPath +Move-Item -Path $srcPath/$vhdDirName -Destination $dstPath +Move-Item -Path $srcPath/$vmDir -Destination $dstPath ` var ps powershell.PowerShellCmd