Fix match spaces at the end of version line
parent
15d0b6a841
commit
cacaa1ccef
|
@ -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})\s*\$ ]]; then
|
||||
if [[ "\$line" =~ ^##\\ \\[([0-9]+\\.[0-9]+\\.[0-9]+)\\]\\ -\\ ([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
|
||||
|
|
Loading…
Reference in New Issue