From 505ea6cbdfb6029d2688720dee4ff8842197345d Mon Sep 17 00:00:00 2001 From: J <91372088+jarelllama@users.noreply.github.com> Date: Wed, 11 Dec 2024 15:17:35 +0800 Subject: [PATCH] check_dead.sh: sort correctly when removing dead domains to fix comm sorting error check_dead.yml: update comments --- .github/workflows/check_dead.yml | 2 +- scripts/check_dead.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check_dead.yml b/.github/workflows/check_dead.yml index eb5cbb565..c34a1eb28 100644 --- a/.github/workflows/check_dead.yml +++ b/.github/workflows/check_dead.yml @@ -35,7 +35,7 @@ jobs: ref: main - name: check_dead.sh part 2 - # Note the resurrected domains check only runs during part 2 + # Note dead domains and resurrected domains are only removed/added in part 2. run: bash scripts/check_dead.sh part2 - name: Push diff --git a/scripts/check_dead.sh b/scripts/check_dead.sh index 71abc3bfc..1a32e59fc 100644 --- a/scripts/check_dead.sh +++ b/scripts/check_dead.sh @@ -111,7 +111,7 @@ find_dead_in() { # Function 'remove_dead' removes dead domains from the raw file, raw light # file, root domains file and subdomains file. remove_dead() { - cp "$DEAD_DOMAINS" dead.tmp + sort "$DEAD_DOMAINS" -o dead.tmp # Remove dead domains from subdomains file comm -23 "$SUBDOMAINS" dead.tmp > temp