Skip to content

Commit

Permalink
script: fix blocklist
Browse files Browse the repository at this point in the history
  • Loading branch information
ServarrAdmin committed Dec 22, 2024
1 parent 98dc1d3 commit df742ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/indexer-sync-v2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,11 @@ handle_new_indexers() {
if [ -n "$added_indexers" ]; then
log "INFO" "New Indexers detected"
for indexer in ${added_indexers}; do
log "DEBUG" "Evaluating [$indexer] against BLOCKLIST"
base_indexer=$(basename "$indexer")
log "DEBUG" "Evaluating [$indexer] against BLOCKLIST with name [$base_indexer]"
# Check if the indexer is in the BLOCKLIST
if [[ -n "${blocklist_map[$indexer]}" ]]; then
log "INFO" "[$indexer] is in the BLOCKLIST. Removing..."
if [[ -n "${blocklist_map[$base_indexer]}" ]]; then
log "INFO" "[$base_indexer] is in the BLOCKLIST. Removing [${indexer}]..."
git rm --f --ignore-unmatch "$indexer"
continue
fi
Expand Down

0 comments on commit df742ff

Please sign in to comment.