~sircmpwn/cgi-scripts

cgi-scripts/web.sh -rwxr-xr-x 300 bytes
5222626cDrew DeVault web2gmni: handle fetch errors 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
if [ "$QUERY_STRING" = "" ]
then
	printf "10 Enter a web url\r\n"
	return
fi

printf "20 text/gemini\r\n"
printf "NOTICE: This page was automatically generated from HTML. Your mileage may vary.\n\n"
node web2gmi.js "$QUERY_STRING"
printf "---\n\n=> %s View original (http)" "$QUERY_STRING"