From 5aa9f60e86fe581e7b01dd482ef62bed3978b505 Mon Sep 17 00:00:00 2001 From: kamzata Date: Mon, 5 Feb 2024 15:09:47 +0100 Subject: [PATCH] Add "setup" filter to content_is_present --- oca-repos-manager.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oca-repos-manager.sh b/oca-repos-manager.sh index 529ff41..7587505 100644 --- a/oca-repos-manager.sh +++ b/oca-repos-manager.sh @@ -235,7 +235,7 @@ get_repos_names() { echo -n "." >&2 branch_content=$(curl -s -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${gh_token}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/OCA/"${repo_name}"/contents\?ref\="${odoo_version}") - content_is_present=$(echo "${branch_content}" | jq -e 'any(arrays[]; .name | . == "README.md" or . == "LICENSE" or startswith(".") | not)') + content_is_present=$(echo "${branch_content}" | jq -e 'any(arrays[]; .name | . == "README.md" or . == "LICENSE" or . == "setup" or startswith(".") | not)') if [[ "${content_is_present}" == true ]]; then repos_names+=("${repo_name}")