From: Armaan Bhojwani Date: Sat, 29 May 2021 22:39:18 +0000 (-0400) Subject: scoop-cgi: update homepage X-Git-Url: https://git.armaanb.net/?p=bin.git;a=commitdiff_plain;h=2a5674a5a26af6e74a51907d17f0401d3c8c4064 scoop-cgi: update homepage --- diff --git a/scoop-cgi b/scoop-cgi index 3b2aef5..00241c4 100755 --- 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