Use named arguments to pass files to template

This commit is contained in:
2024-08-04 22:08:11 +10:00
parent 89a5224af2
commit 09ffd40bf7
3 changed files with 30 additions and 27 deletions

View File

@@ -21,7 +21,7 @@ function create_or_update_page() {
slug=$(echo "$council_block" | jq -r '.slug')
content=$(echo "$council_block" | jq -c | php php-template/main.php "php://stdin" "candidates/$slug.csv")
content=$(echo "$council_block" | jq -c | php php-template/main.php --council-file "php://stdin" --candidates-file "candidates/$slug.csv")
if [ $? -eq 0 ]; then