Fix match spaces at the end of version line
parent
cacaa1ccef
commit
e5204ffe40
|
@ -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]+\\.[0-9]+\\.[0-9]+)\\]\\ -\\ ([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})[[:space:]]*\$ ]]; 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
|
||||||
|
|
Loading…
Reference in New Issue