Fix match spaces at the end of version line

main
Nicolas Arenas 2025-03-19 12:46:01 +01:00
parent a3bff4e32c
commit 15d0b6a841
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 version_block_started=false
while IFS= read -r line || [[ -n "\$line" ]]; do while IFS= read -r line || [[ -n "\$line" ]]; do
if [[ "\$line" =~ ^##\\ \\[(.*)\\]\\ -\\ ([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})\\\s*\$ ]]; 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 if [ "\$first_entry" = false ] && [ "\$version_block_started" = true ]; then
echo -e " -- \$MAINTAINER_NAME <\$MAINTAINER_EMAIL> \$(date -R)\\n" >> "\$OUTPUT_FILE" echo -e " -- \$MAINTAINER_NAME <\$MAINTAINER_EMAIL> \$(date -R)\\n" >> "\$OUTPUT_FILE"
fi fi