fix
This commit is contained in:
parent
360dc78833
commit
92fbe2f844
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user