Enforce each region for planet (each) root region
This commit is contained in:
@@ -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.
Reference in New Issue
Block a user