#!/bin/sh set -eu origin=https://dana.195-95-133-47.sslip.io headers="/tmp/dana-preview-headers-$$" body="/tmp/dana-preview-body-$$" cleanup() { rm -f "$headers" "$body"; } trap cleanup EXIT INT TERM i=0 status=000 while [ "$i" -lt 30 ]; do status="$(curl -sS --max-time 10 -D "$headers" -o "$body" -w '%{http_code}' "$origin/" 2>/dev/null || true)" [ "$status" = 200 ] && break sleep 2 i=$((i + 1)) done [ "$status" = 200 ] grep -qi '^x-robots-tag: noindex, nofollow' "$headers" grep -q '