mirror of
https://github.com/edoardottt/awesome-hacker-search-engines.git
synced 2025-01-07 05:18:04 -05:00
removed section_escaped
This commit is contained in:
parent
cf34838f48
commit
bb2ce14379
@ -17,7 +17,6 @@ fi
|
|||||||
# Function to extract links from a section and check for duplicates
|
# Function to extract links from a section and check for duplicates
|
||||||
check_section() {
|
check_section() {
|
||||||
section=$1
|
section=$1
|
||||||
section_escaped=$(sed 's/[&/\]/\\&/g' <<< "$section")
|
|
||||||
section_content=$(awk -v section="$section" '/^### / {p=0} {if(p)print} /^### '"$section"'/ {p=1}' "$readme")
|
section_content=$(awk -v section="$section" '/^### / {p=0} {if(p)print} /^### '"$section"'/ {p=1}' "$readme")
|
||||||
duplicate_links=$(echo "$section_content" | grep -oP '\[.*?\]\(\K[^)]+' | sort | uniq -d)
|
duplicate_links=$(echo "$section_content" | grep -oP '\[.*?\]\(\K[^)]+' | sort | uniq -d)
|
||||||
if [[ -n $duplicate_links ]]; then
|
if [[ -n $duplicate_links ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user