Skip to content

Commit 8173cb9

Browse files
committed
Fix zip folder issue
1 parent e073bb8 commit 8173cb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/PublishAzureVMDscConfiguration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ private string CreateConfigurationArchive()
290290
@"function Copy-Module([string]$module, [string]$tempZipFolder)
291291
{
292292
$mi = Get-Module -List -Name $module;
293-
$moduleFolder = Split-Path -Parent $mi.Path;
294-
Copy-Item -Recurse -Path $moduleFolder -Destination $tempZipFolder;
293+
$moduleFolder = Split-Path $mi.Path;
294+
Copy-Item -Recurse -Path $moduleFolder -Destination ""$tempZipFolder\$($mi.Name)""
295295
}"
296296
);
297297
powershell.Invoke();

0 commit comments

Comments
 (0)