Skip to content

Commit

Permalink
ignore case during sorting
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
  • Loading branch information
JorTurFer committed Aug 17, 2023
1 parent d6c54d5 commit b3eb5de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/validate-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ function extract_and_check() {
fi

# Separate and sort the **General**: lines
local sorted_general_lines=$(echo "$content" | grep '^- \*\*General\*\*:' | sort)
local sorted_general_lines=$(echo "$content" | grep '^- \*\*General\*\*:' | sort --ignore-case)

# Sort the remaining lines
local sorted_content=$(echo "$content" | grep -v '^- \*\*General\*\*:' | sort)
local sorted_content=$(echo "$content" | grep -v '^- \*\*General\*\*:' | sort --ignore-case)

# Check if sorted_general_lines is not empty, then concatenate
if [[ -n "$sorted_general_lines" ]]; then
Expand Down

0 comments on commit b3eb5de

Please sign in to comment.