#!/bin/bash # Deploy universal auth snippet to ALL quiXzoom sites SITES=( "/home/bernt/.openclaw/workspace/quixzoom-landing-fixed" "/home/bernt/.openclaw/workspace/quixzoom-asia-pages" "/home/bernt/.openclaw/workspace/quixzoom-market-pages" "/home/bernt/.openclaw/workspace/landvex-site/quixzoom" ) SNIPPET_FILE="/home/bernt/.openclaw/workspace/quixzoom-sso-auth/universal-auth-snippet.html" echo "🚀 Deploying universal auth to ALL quiXzoom sites..." for site in "${SITES[@]}"; do if [ -d "$site" ]; then echo " 📁 Processing: $(basename "$site")" find "$site" -name "*.html" -type f | while read -r htmlfile; do # Skip if already has universal auth if grep -q "qz-auth-bar" "$htmlfile" 2>/dev/null; then # Remove old auth bar first sed -i '/