]> git.armaanb.net Git - bin.git/commitdiff
scoop-cgi: update homepage
authorArmaan Bhojwani <me@armaanb.net>
Sat, 29 May 2021 22:39:18 +0000 (18:39 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Sun, 30 May 2021 04:43:47 +0000 (00:43 -0400)
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
 
 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
 
                exit 0
 fi