From e46a4bf8a1167c6f4e9832724fa11f6a51facf6b Mon Sep 17 00:00:00 2001 From: yukkop Date: Fri, 1 May 2026 12:31:44 +0000 Subject: [PATCH] fix: `db-tool`: envcontent --- package/db-tool/database.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package/db-tool/database.sh b/package/db-tool/database.sh index ce15716..5f18590 100644 --- a/package/db-tool/database.sh +++ b/package/db-tool/database.sh @@ -945,8 +945,10 @@ subcommand_hydrate() { log info "hectic bundle hook" # shellcheck disable=SC2059 printf "${BBLACK}" - dotenv_content="" - if [ -n "${HECTIC_DOTENV_FILE:-}" ] && [ -r "$HECTIC_DOTENV_FILE" ]; then + dotenv_content="${HECTIC_DOTENV_CONTENT:-}" + if [ -n "$dotenv_content" ]; then + : + elif [ -n "${HECTIC_DOTENV_FILE:-}" ] && [ -r "$HECTIC_DOTENV_FILE" ]; then dotenv_content="$(cat "$HECTIC_DOTENV_FILE")" elif [ -n "${ENVIRONMENT:-}" ] && [ -r "${LOCAL_DIR}/.env.${ENVIRONMENT}" ]; then dotenv_content="$(cat "${LOCAL_DIR}/.env.${ENVIRONMENT}")"