diff --git a/scripts/check-manifests.sh b/scripts/check-manifests.sh index 131f75f..bdea23c 100755 --- a/scripts/check-manifests.sh +++ b/scripts/check-manifests.sh @@ -23,6 +23,13 @@ plugin_count=$(jq '.plugins | length' "$MARKETPLACE") for ((i = 0; i < plugin_count; i++)); do name=$(jq -r ".plugins[$i].name" "$MARKETPLACE") + source_type=$(jq -r ".plugins[$i].source | type" "$MARKETPLACE") + + # Remote sources (github, git, npm objects) have no local directory to check + if [[ "$source_type" != "string" ]]; then + continue + fi + source=$(jq -r ".plugins[$i].source" "$MARKETPLACE") source="${source#./}" plugin_dir="$REPO_ROOT/$source"