Fix load_env_file_safely to actually export environment variables

This commit is contained in:
Kelin
2026-02-02 14:37:23 -05:00
parent 457d803f57
commit 98f6b55fdf

View File

@@ -83,6 +83,10 @@ load_env_file_safely() {
# Trim whitespace from key and value # Trim whitespace from key and value
key=$(echo "$key" | xargs) key=$(echo "$key" | xargs)
value=$(echo "$value" | xargs) value=$(echo "$value" | xargs)
# Export the variable
export "$key"="$value"
debug_log "Exported $key=[HIDDEN]" # Don't log actual values for security debug_log "Exported $key=[HIDDEN]" # Don't log actual values for security
fi fi
done < "$env_file" done < "$env_file"