pass variables as parameters t obash

main
Nicolas Arenas 2025-03-17 23:59:25 +01:00
parent 1c825aabd6
commit c29c04f964
1 changed files with 4 additions and 3 deletions

View File

@ -31,7 +31,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})\$ ]]; then
if [ "\$first_entry" = false ] && [ "\$version_block_started" = true ]; then
echo -e " -- \$MAINTAINER_NAME <\$MAINTAINER_EMAIL> \$(date -R)\\n" >> "\$OUTPUT_FILE"
fi
@ -46,9 +46,9 @@ def call(String repoDir, String maintainerName = "Qindel Opengnsys Team", String
echo -e "\$PACKAGE_NAME (\$VERSION) \$DISTRIBUTION; urgency=\$URGENCY\\n" >> "\$OUTPUT_FILE"
elif [[ "\$line" =~ ^###\\ (.*) ]]; then
elif [[ "\$line" =~ ^###\ (.*) ]]; then
echo -e " * \${BASH_REMATCH[1]}" >> "\$OUTPUT_FILE"
elif [[ "\$line" =~ ^-\\ (.*) ]]; then
elif [[ "\$line" =~ ^-\ (.*) ]]; then
echo -e " - \${BASH_REMATCH[1]}" >> "\$OUTPUT_FILE"
elif [[ -z "\$line" ]]; then
echo "" >> "\$OUTPUT_FILE"
@ -63,3 +63,4 @@ def call(String repoDir, String maintainerName = "Qindel Opengnsys Team", String
"""
}
}