Skip to content

Commit

Permalink
fix: load .env properly
Browse files Browse the repository at this point in the history
  • Loading branch information
bap2pecs committed Oct 19, 2024
1 parent 6f6ba4f commit 9875ff3
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9875ff3

Please sign in to comment.