fix(ci): tolerate missing client CLIs
This commit is contained in:
1 parent
cf8e7cfc1b
commit
7558addb79
3 files changed
+4
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user