Enforce each region for planet (each) root region

This commit is contained in:
2026-05-10 01:40:29 +02:00
parent 17ab0bfb3d
commit 584b47a244
2 changed files with 5 additions and 2 deletions
+5 -2
View File
@@ -91,9 +91,12 @@ REGION="$2"
MEMORY="$3" MEMORY="$3"
#Generate #Generate
if [[ "$REGION_ROOT" == "each" ]]; then if [ "$REGION_ROOT" == "each" ]; then
if [ "$REGION" != "each" ]; then
echo "Cannot generate 'each' root region for non-each region, exiting..."
exit 1
fi
while IFS= read -r REGION_ROOT; do while IFS= read -r REGION_ROOT; do
# Straight up just ignore REGION here
generate_root "$REGION_ROOT" "each" "$MEMORY" generate_root "$REGION_ROOT" "each" "$MEMORY"
done < "defs/regions/planet.txt" done < "defs/regions/planet.txt"
else else
Binary file not shown.