Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Apr 1, 2024
1 parent 963f6fb commit ac902a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions functions/build_lists.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ build() {
source_file="$RAW_LIGHT"
fi

source_file=${source_file:-$RAW}
source_file="${source_file:-$RAW}"
blocklist_path="lists/${directory}/${list_name:-'scams.txt'}"

# Append header onto blocklist
cat << EOF > "$blocklist_path"
${comment} Title: Jarelllama's Scam Blocklist ${version:-''}
${comment} Title: Jarelllama's Scam Blocklist ${version}
${comment} Description: Blocklist for scam site domains automatically retrieved daily from Google Search and public databases.
${comment} Homepage: https://github.com/jarelllama/Scam-Blocklist
${comment} License: GNU GPLv3 (https://raw.githubusercontent.com/jarelllama/Scam-Blocklist/main/LICENSE.md)
Expand All @@ -38,8 +38,8 @@ EOF
[[ "$syntax" == 'Unbound' ]] && printf "server:\n" >> "$blocklist_path"

# Append formatted domains onto blocklist
printf "%s\n" "$(awk -v before="$before" -v after="$after" \
'{print before $0 after}' "$source_file")" >> "$blocklist_path"
awk -v before="$before" -v after="$after" \
'{print before $0 after}' "$source_file" >> "$blocklist_path"
done
}

Expand Down

0 comments on commit ac902a0

Please sign in to comment.