mirror of
https://github.com/edoardottt/awesome-hacker-search-engines.git
synced 2025-01-05 20:40:55 -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
|
||||
check_section() {
|
||||
section=$1
|
||||
section_escaped=$(sed 's/[&/\]/\\&/g' <<< "$section")
|
||||
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)
|
||||
if [[ -n $duplicate_links ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user