Source .env in fetch script and fix GNUnet URL

This commit is contained in:
nocci 2025-12-12 12:22:26 +00:00
parent 9f52c93da3
commit dd04a09022
3 changed files with 10 additions and 2 deletions

View file

@ -10,6 +10,14 @@ ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
VENDOR_DIR="${ROOT_DIR}/vendor"
mkdir -p "${VENDOR_DIR}"
# Load .env if present to honor GNUNET_TARBALL_URL/EXCHANGE_TARBALL_URL/... overrides
if [[ -f "${ROOT_DIR}/.env" ]]; then
set -a
# shellcheck disable=SC1091
source "${ROOT_DIR}/.env"
set +a
fi
GNUNET_VERSION="${GNUNET_VERSION:-0.26.1}"
EXCHANGE_VERSION="${EXCHANGE_VERSION:-1.2.2}"
MERCHANT_VERSION="${MERCHANT_VERSION:-1.1.6}"