diff --git a/.github/scripts/get-contributing.sh b/.github/scripts/get-contributing.sh index 78333976b6..e4933c3619 100755 --- a/.github/scripts/get-contributing.sh +++ b/.github/scripts/get-contributing.sh @@ -14,11 +14,14 @@ local='' while IFS= read -r line; do # this section removes prev lines after file loads - src/load set to non-empty if [[ -n "$src" || -n "$local" ]]; then - # if line eq level - level is num of ##s - if [[ "$line" == "$level"'#'* || - # line not a header) - "$line" != '#'* ]]; then - continue + # line not a horitzontal rule hr + if [[ "$line" != "----"* ]]; then + # if line eq level - level is num of ##s + if [[ "$line" == "$level"'#'* || + # line not a header) + "$line" != '#'* ]]; then + continue + fi fi fi