From 4014ac0a39155b6e9c8157f2e85dba6b4de9f79e Mon Sep 17 00:00:00 2001 From: thomas192 Date: Thu, 4 Apr 2024 19:50:31 +0200 Subject: [PATCH] Update --- scripts/deploy-blobstreamx.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/deploy-blobstreamx.sh b/scripts/deploy-blobstreamx.sh index 111acaa..b6c57a3 100755 --- a/scripts/deploy-blobstreamx.sh +++ b/scripts/deploy-blobstreamx.sh @@ -1,5 +1,9 @@ #!/bin/bash -source ../.env + +# Load env variable from `.env` only if they're not already set +if [ -z "$STARKNET_KEYSTORE" ] || [ -z "$STARKNET_ACCOUNT" ]; then + source ../.env +fi # Check if required env variables are set, if not exit if [ -z "$STARKNET_KEYSTORE" ]; then