Update build-catalog.sh

Signed-off-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
This commit is contained in:
Kjeld Schouten-Lebbing 2022-08-12 12:58:53 +02:00 committed by GitHub
parent d99a7f1906
commit 85278e9a77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -271,6 +271,11 @@ include_questions(){
/# Include{resources}/ { for (i=0;i<n;++i) print a[i]; next }
1' templates/questions/resources.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
# Replace # Include{donate} with the standard donate codesnippet
awk 'NR==FNR { a[n++]=$0; next }
/# Include{donate}/ { for (i=0;i<n;++i) print a[i]; next }
1' templates/questions/donate.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
}
export -f include_questions