File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -175,11 +175,13 @@ Write-Host "START - [Copying over .scwdp contents to Sitecore module asset image
175175Write-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
You can’t perform that action at this time.
0 commit comments