Blob
1 #!/bin/sh3 URL=$(cat -)4 URL_TAIL=$(echo $URL | awk -F "/" '{print $NF}')6 if [ "$URL_TAIL" = "auth" ]; then7 if [ -z "${VGI_CERT_HASH}" ]; then8 echo "60 Certificate required\r"9 exit10 fi12 echo "20 text/gemini\r"13 echo "# VGI demo (authenticated)\r"14 echo "\`\`\`\r"15 echo "VGI_CERT_HASH=$VGI_CERT_HASH\r"16 echo "\`\`\`\r"17 exit18 fi20 echo "20 text/gemini\r"21 echo "# VGI demo\r"22 echo "\r"23 echo "Requested URL: \r"24 echo "=> $URL"