File tree 1 file changed +6
-4
lines changed
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
175
175
Write-Host " `n "
176
176
177
177
# 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
179
180
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
+ }
183
185
}
184
186
185
187
# Copy dacpacs + rename
You can’t perform that action at this time.
0 commit comments