diff --git a/Modules/ContentLibrary/ContentLibrary.psm1 b/Modules/ContentLibrary/ContentLibrary.psm1 index 3443897c..7c979a05 100644 --- a/Modules/ContentLibrary/ContentLibrary.psm1 +++ b/Modules/ContentLibrary/ContentLibrary.psm1 @@ -526,7 +526,7 @@ Function Copy-ContentLibrary { $sourceLibraryId = (Get-ContentLibrary -LibraryName $SourceLibraryName).Id if($sourceLibraryId -eq $null) { Write-Host -ForegroundColor red "Unable to find Source Content Library named $SourceLibraryName" - exit + break } $destinationLibraryId = (Get-ContentLibrary -LibraryName $DestinationLibraryName).Id if($destinationLibraryId -eq $null) { @@ -777,4 +777,4 @@ Function New-SubscribedContentLibrary { Write-Host "Creating new Subscribed Content Library called $LibraryName ..." $library = $subscribeLibraryService.create($UniqueChangeId, $createSpec) } -} \ No newline at end of file +}