diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 46d3cf0..b391fad 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -82,6 +82,7 @@ jobs: run: | if [ "${POWERSHELL_AVAILABLE:-false}" != true ]; then exit 0; fi pwsh -NoLogo -NoProfile -NonInteractive -File ./scripts/commands/check-capabilities.ps1 + pwsh -NoLogo -NoProfile -NonInteractive -File ./scripts/commands/build.ps1 -Summary for file in scripts/tests/test-*.ps1; do echo "==> $file" pwsh -NoLogo -NoProfile -NonInteractive -File "$file" -Summary diff --git a/scripts/lib/plugins.ps1 b/scripts/lib/plugins.ps1 index ca5f82f..b149211 100644 --- a/scripts/lib/plugins.ps1 +++ b/scripts/lib/plugins.ps1 @@ -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 diff --git a/scripts/lib/plugins.sh b/scripts/lib/plugins.sh index 245b192..d0e26fc 100755 --- a/scripts/lib/plugins.sh +++ b/scripts/lib/plugins.sh @@ -4,6 +4,7 @@ set -euo pipefail plugin_installed() { local client=$1 plugin=$2 local inventory + command -v "$client" >/dev/null 2>&1 || return 1 inventory=$("$client" plugin list --json) || return 2 printf '%s' "$inventory" | python3 -c ' import json, sys