diff --git a/Plaster/Public/New-PlasterManifest.ps1 b/Plaster/Public/New-PlasterManifest.ps1 index 01ab9fd..784c303 100644 --- a/Plaster/Public/New-PlasterManifest.ps1 +++ b/Plaster/Public/New-PlasterManifest.ps1 @@ -125,8 +125,8 @@ function New-PlasterManifest { $fileAction = [ordered]@{ 'type' = 'file' - 'source' = $filename - 'destination' = $filename + 'source' = $filename.Replace('\', '/') + 'destination' = $filename.Replace('\', '/') } $jsonManifest.content += $fileAction } @@ -162,11 +162,11 @@ function New-PlasterManifest { $fileElem = $manifest.CreateElement('file', $TargetNamespace) $srcAttr = $manifest.CreateAttribute("source") - $srcAttr.Value = $filename + $srcAttr.Value = $filename.Replace('\', '/') $fileElem.Attributes.Append($srcAttr) > $null $dstAttr = $manifest.CreateAttribute("destination") - $dstAttr.Value = $filename + $dstAttr.Value = $filename.Replace('\', '/') $fileElem.Attributes.Append($dstAttr) > $null $manifest.plasterManifest["content"].AppendChild($fileElem) > $null diff --git a/tests/New-PlasterManifest.Tests.ps1 b/tests/New-PlasterManifest.Tests.ps1 index e2b6ebc..6fac221 100644 --- a/tests/New-PlasterManifest.Tests.ps1 +++ b/tests/New-PlasterManifest.Tests.ps1 @@ -142,7 +142,7 @@ Describe 'New-PlasterManifest Command Tests' { } It 'AddContent parameter works' { - $separator = if ($IsWindows) { "\" } else { "/" } + $separator = "/" $expectedManifest = @"