fix(ci): tolerate missing client CLIs

This commit is contained in:
fraujulian committed 2026-09-25 11:05:14 +02:00
1 parent cf8e7cfc1b
commit 7558addb79
3 files changed
+4 -1

No files matched your search

+2 -1
View File
@@ -39,7 +39,8 @@ function Get-InstalledPlugins {
[ValidateSet('Claude','Codex')][string]$Client,
[string]$HomePath = [Environment]::GetFolderPath('UserProfile')
)
$command = Get-Command $Client.ToLowerInvariant() -ErrorAction Stop
$command = Get-Command $Client.ToLowerInvariant() -ErrorAction SilentlyContinue
if (-not $command) { return @() }
$environment = @{
HOME = $HomePath
USERPROFILE = $HomePath