This commit is contained in:
Gal Podlipnik 2025-07-17 03:01:21 +02:00
parent 360dc78833
commit 92fbe2f844

View File

@ -52,8 +52,8 @@ check_env() {
validate_env() { validate_env() {
log_info "Validating environment configuration..." log_info "Validating environment configuration..."
# Source the .env file # Source the .env file (filter out comments and handle inline comments)
export $(grep -v '^#' .env | xargs) export $(grep -v '^#' .env | grep -v '^$' | sed 's/#.*$//' | sed 's/[[:space:]]*$//' | xargs)
# Check required variables # Check required variables
if [ -z "$ALPACA_API_KEY" ] || [ "$ALPACA_API_KEY" = "your_paper_api_key_here" ]; then if [ -z "$ALPACA_API_KEY" ] || [ "$ALPACA_API_KEY" = "your_paper_api_key_here" ]; then