Skip to content

Commit 0f56dba

Browse files
authored
Merge pull request #7 from steviemcg/feature/support-item-only-packages
Supports item-only packages by testing if Content\Website exists
2 parents a92782b + 442445a commit 0f56dba

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Create-SitecoreModule-DockerAssetImage.ps1

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,13 @@ Write-Host "START - [Copying over .scwdp contents to Sitecore module asset image
175175
Write-Host "`n"
176176

177177
# Copy content
178-
Copy-Item -Path "$extractSCwdpDirectory\Content\Website\*" -Destination $cmContentDirectory -PassThru -Recurse
178+
If (Test-Path "$extractSCwdpDirectory\Content\Website") {
179+
Copy-Item -Path "$extractSCwdpDirectory\Content\Website\*" -Destination $cmContentDirectory -PassThru -Recurse
179180

180-
if ($GenerateCdContentDirectory) {
181-
# Copy content to create CD layer folders
182-
Copy-Item -Path $cmContentDirectory\* -Destination $cdContentDirectory -PassThru -Recurse
181+
if ($GenerateCdContentDirectory) {
182+
# Copy content to create CD layer folders
183+
Copy-Item -Path $cmContentDirectory\* -Destination $cdContentDirectory -PassThru -Recurse
184+
}
183185
}
184186

185187
# Copy dacpacs + rename

0 commit comments

Comments
 (0)