#!/bin/bash

# omarchy:summary=Show the region this machine is set up for

set -euo pipefail

region_file=/etc/omarchy/region

if [[ ! -e $region_file ]]; then
  echo "Global"
elif [[ $(<"$region_file") == "china" ]]; then
  echo "China"
else
  echo "Unknown region in $region_file: $(<"$region_file")" >&2
  exit 1
fi
