Skip to content

Commit

Permalink
fix: missing exclusion check
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Dec 30, 2024
1 parent 58beddf commit eee1016
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit eee1016

Please sign in to comment.