From bb2ce143793262153d1658849ee67350ed7cade3 Mon Sep 17 00:00:00 2001 From: milinddethe15 Date: Sat, 14 Oct 2023 20:20:00 +0530 Subject: [PATCH] removed `section_escaped` --- scripts/check-dups.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/check-dups.sh b/scripts/check-dups.sh index 74a1918..6e50ca8 100755 --- a/scripts/check-dups.sh +++ b/scripts/check-dups.sh @@ -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