Blob
1 #!/bin/sh3 URL=$(cat -)4 URL_TAIL=$(echo $URL | awk -F "/" '{print $5}')6 if [ "$URL_TAIL" = auth ]7 then8 if [ -z "${VGI_CERT_HASH}" ]; then9 echo "60 Certificate required"10 exit11 fi13 echo "20 text/gemini"14 echo "# VGI demo (authenticated)"15 echo "\`\`\`"16 echo "VGI_CERT_HASH=$VGI_CERT_HASH"17 echo "\`\`\`"18 exit19 fi21 echo "20 text/gemini"22 echo "# VGI demo"23 echo ""24 echo "Requested URL:"25 echo "=> $URL"