This commit is contained in:
Senko-san
2026-06-14 23:42:39 +03:00
parent 3a63ced4d4
commit 885fa4c273
4 changed files with 7 additions and 10 deletions
+7
View File
@@ -12,6 +12,13 @@ ENV_FILE="${BOOTSTRAP_DIR}/.env.deploy"
COMPOSE_FILE="${BOOTSTRAP_DIR}/docker-compose.yml"
CADDYFILE="${BOOTSTRAP_DIR}/Caddyfile"
# Bash 4+ is required for associative arrays (used by i18n and others), so
# check before sourcing anything — macOS ships bash 3.2 as /bin/bash.
if ((BASH_VERSINFO[0] < 4)); then
echo "Error: Bash 4+ is required (found ${BASH_VERSION}). On macOS, install a newer bash (e.g. 'brew install bash') and re-run with it." >&2
exit 1
fi
# shellcheck source=lib/i18n.sh
source "${BOOTSTRAP_DIR}/lib/i18n.sh"
source "${BOOTSTRAP_DIR}/lib/ui.sh"