We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78a2585 commit d1c2dd2Copy full SHA for d1c2dd2
build.psm1
@@ -332,8 +332,9 @@ function New-Catalog
332
{
333
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseCompatibleCommands', '')]
334
param ( [Parameter()]$Location )
335
- if ( ! $IsWindows ) {
336
- Write-Warning "Create catalog only on windows"
+ $newFileCatalog = Get-Command -ea silentlycontinue New-FileCatalog
+ if ($null -eq $newFileCatalog) {
337
+ Write-Warning "New-FileCatalog not found, not creating catalog"
338
return
339
}
340
try {
0 commit comments