From b3eb5decfec8d041788707787d556983e7e81568 Mon Sep 17 00:00:00 2001 From: Jorge Turrado Date: Thu, 17 Aug 2023 10:11:54 +0200 Subject: [PATCH] ignore case during sorting Signed-off-by: Jorge Turrado --- hack/validate-changelog.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/validate-changelog.sh b/hack/validate-changelog.sh index 4c380241c40..bfa5003c14a 100755 --- a/hack/validate-changelog.sh +++ b/hack/validate-changelog.sh @@ -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