removed `section_escaped`

This commit is contained in:
milinddethe15 2023-10-14 20:20:00 +05:30
parent cf34838f48
commit bb2ce14379
1 changed files with 0 additions and 1 deletions

View File

@ -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