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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user