chore: use script location not cwd for finding tiles.tfvars file (#136)

This commit is contained in:
Zack Pollard
2025-05-30 12:48:15 -04:00
committed by GitHub
parent f32900bf5d
commit 2a4eb70b3e
+1 -1
View File
@@ -13,7 +13,7 @@ fi
regions=("apac" "eeur" "enam" "wnam" "weur" "oc") regions=("apac" "eeur" "enam" "wnam" "weur" "oc")
# Define the path to the JSON file # Define the path to the JSON file
json_file="../modules/cloudflare/tiles-worker/tiles.tfvars.json" json_file="$(dirname "$0")/../modules/cloudflare/tiles-worker/tiles.tfvars.json"
# Extract the value of pmtiles_deployment_key using jq # Extract the value of pmtiles_deployment_key using jq
pmtiles_deployment_key=$(cat "$json_file" | jq -r '.pmtiles_deployment_key') pmtiles_deployment_key=$(cat "$json_file" | jq -r '.pmtiles_deployment_key')