Fix match spaces at the end of version line

main
Nicolas Arenas 2025-03-19 12:43:38 +01:00
parent 2c1b13eb38
commit 7c8de8e1f2
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ def call(String repoDir, String maintainerName = "Qindel Opengnsys Team", String
version_block_started=false
while IFS= read -r line || [[ -n "\$line" ]]; do
if [[ "\$line" =~ ^##\\ \\[(.*)\\]\\ -\\ ([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})\$ ]]; then
if [[ "\$line" =~ ^##\\ \\[(.*)\\]\\ -\\ ([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})\\s*\$ ]]; then
if [ "\$first_entry" = false ] && [ "\$version_block_started" = true ]; then
echo -e " -- \$MAINTAINER_NAME <\$MAINTAINER_EMAIL> \$(date -R)\\n" >> "\$OUTPUT_FILE"
fi