]> git.armaanb.net Git - bin.git/blobdiff - scoop-cgi
scoop-cgi: update homepage
[bin.git] / scoop-cgi
index 3b2aef5c0dc730f3602d9fe8d8e20936a3bb49d2..00241c4667c53fd7718f883f2bec9ecf9bd920e1 100755 (executable)
--- a/scoop-cgi
+++ b/scoop-cgi
@@ -3,12 +3,25 @@
 
 channel=$(echo "$PATH_INFO" | awk -F / '{print $2}')
 if [ -z "$channel" ]; then
-               echo "Content-type: text/plain\n"
-               echo "Logged channels:"
-               cat /etc/scoop-cgi/channels
-               echo "
-url format: /channel/date
-date is optional, and defaults to the current day"
+               echo "Content-type: text/plain
+
+=================
+acheam's IRC logs
+=================
+
+logged channels
+---------------
+$(awk '{print "  * " $0}' /etc/scoop-cgi/channels)
+
+url format
+----------
+/channel/date
+date is optional, and defaults to the current day
+
+source
+------
+https://git.armaanb.net/bin/tree/scoop-cgi
+it's in the public domain!"
                exit 0
 fi