From 92fbe2f8445c544da04d43c64a86c9ffb1dd9d24 Mon Sep 17 00:00:00 2001 From: Gal Podlipnik Date: Thu, 17 Jul 2025 03:01:21 +0200 Subject: [PATCH] fix --- deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 5cf43bc..0188beb 100755 --- a/deploy.sh +++ b/deploy.sh @@ -52,8 +52,8 @@ check_env() { validate_env() { log_info "Validating environment configuration..." - # Source the .env file - export $(grep -v '^#' .env | xargs) + # Source the .env file (filter out comments and handle inline comments) + export $(grep -v '^#' .env | grep -v '^$' | sed 's/#.*$//' | sed 's/[[:space:]]*$//' | xargs) # Check required variables if [ -z "$ALPACA_API_KEY" ] || [ "$ALPACA_API_KEY" = "your_paper_api_key_here" ]; then