From 9d5ba8bd38f77408dcacc3c29a79ca994f676841 Mon Sep 17 00:00:00 2001 From: Matt Way Date: Sun, 11 Aug 2024 20:38:03 +1000 Subject: [PATCH] Rename JSON_FILE to COUNCILS_FILE --- make-council-pages.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/make-council-pages.sh b/make-council-pages.sh index 743e915..6589098 100644 --- a/make-council-pages.sh +++ b/make-council-pages.sh @@ -8,7 +8,7 @@ # The "slug" field must be a string. # The "councilName" field must be a string. # The "wardNames" field must be a list of strings. -JSON_FILE="council_names.json" +COUNCILS_FILE="council_names.json" # Controls the flags that are passed to every usage of the wp command. WP_FLAGS="--allow-root --path=/var/www/html" @@ -38,8 +38,8 @@ function create_or_update_page() { fi } -# Read JSON data -data=$(cat "$JSON_FILE") +# Read council data +data=$(cat "$COUNCILS_FILE") # Get all page IDs in one go because the wp command is pretty slow wp_posts=$(wp post list --post_type=page --format=json $WP_FLAGS)