From 2a5674a5a26af6e74a51907d17f0401d3c8c4064 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sat, 29 May 2021 18:39:18 -0400 Subject: [PATCH] scoop-cgi: update homepage --- scoop-cgi | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) 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 -- 2.39.2