Skip to content

Commit

Permalink
Adjust script to handle HR line
Browse files Browse the repository at this point in the history
  • Loading branch information
chris del committed Nov 19, 2024
1 parent 7be5ddd commit 32196f9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/scripts/get-contributing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 32196f9

Please sign in to comment.