fix
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user