From 68e061c17222ba3dd5fb69d85a3cd961884e5718 Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Mon, 30 Dec 2024 17:08:14 +0100 Subject: [PATCH] fix: missing exclusion check --- scripts/sync.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/sync.sh b/scripts/sync.sh index 7f5ccb8..68f6b24 100755 --- a/scripts/sync.sh +++ b/scripts/sync.sh @@ -101,6 +101,14 @@ function replicate_all { ) gh repo list ory --visibility public --no-archived --source --json name -L 1000 | jq -r '.[] | .name' | while read -r repo_name; do + # Check if the repository is in the exclusion list + for excluded_repo in "${exclusion_list[@]}"; do + if [[ "$repo_name" == "$excluded_repo" ]]; then + echo "Skipping ${repo_name} as it is in the exclusion list." + continue 2 + fi + done + human_name=${name_map[$repo_name]:-$repo_name} repo_type=${type_map[$repo_name]:-library} replicate "ory/$repo_name" "$repo_type" "$human_name" "$workspace" "$persist"