#!/bin/bash # Process blog markdown content script # This script processes all existing blog posts to convert markdown content to HTML # Load environment variables if [ -f .env.local ]; then export $(grep -v '^#' .env.local | xargs) echo "Loaded environment variables from .env.local" else echo "Warning: .env.local file not found. Make sure environment variables are set." fi # Execute the TypeScript script echo "Running blog markdown processor..." npx tsx scripts/process-blog-markdown.ts # Check the exit status if [ $? -eq 0 ]; then echo "✅ Blog markdown processing completed successfully." else echo "❌ Blog markdown processing failed." exit 1 fi