#!/usr/bin/env bash
# #region BuildOfflineDockerBundle [C:1] [TYPE Module]
# @PURPOSE: Thin wrapper — delegates to ./build.sh bundle (.tar.xz output)
# @COMPLEXITY: 1
# @RATIONALE: Unified into build.sh to avoid confusion; kept for backward compat.
# #endregion BuildOfflineDockerBundle

set -euo pipefail

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"

TAG="${1:-}"

if [[ -z "$TAG" ]]; then
  echo "Usage: $0 <tag>"
  echo "Delegates to: ./build.sh bundle <tag>"
  exit 1
fi

echo "[offline-bundle] Delegating to ./build.sh bundle $TAG..."
exec "${PROJECT_ROOT}/build.sh" bundle "$TAG"
