From 9875ff37c4072e3c5ae85052cf7d381cd50a6968 Mon Sep 17 00:00:00 2001 From: bap2pecs Date: Fri, 18 Oct 2024 20:34:00 -0400 Subject: [PATCH] fix: load .env properly --- .../create-btc-delegations.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/deployments/finality-gadget-integration-op-l2/create-btc-delegations.sh b/deployments/finality-gadget-integration-op-l2/create-btc-delegations.sh index 384cdb1d..d5d0d9d8 100755 --- a/deployments/finality-gadget-integration-op-l2/create-btc-delegations.sh +++ b/deployments/finality-gadget-integration-op-l2/create-btc-delegations.sh @@ -2,10 +2,9 @@ set -euo pipefail # For signet, load environment variables from .env file -echo "Load environment variables from .env file..." -if [ -f .env ]; then - export $(cat .env | grep -v '^#' | xargs) -fi +set -a +source $(pwd)/.env +set +a if [ -z "$(echo ${CONSUMER_ID})" ]; then echo "Error: CONSUMER_ID environment variable is not set"