diff options
| author | Zach DeCook <zachdecook@librem.one> | 2021-03-23 08:32:05 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2021-03-23 08:32:05 -0400 |
| commit | 539b279fdbb44ee67c6480f2dee8247ba57199f5 (patch) | |
| tree | 0239c1007ebe1c299bf296f31d7b40581c6d7267 /ccel.sh | |
| parent | b87fc2fa4e29f0e7e17b40faa66e6d5364c2f466 (diff) | |
| download | cgi-bin-539b279fdbb44ee67c6480f2dee8247ba57199f5.tar.gz | |
* ccel: redirect to authors script
Diffstat (limited to 'ccel.sh')
| -rwxr-xr-x | ccel.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ccel.sh b/ccel.sh index 474c337..2a9b2b2 100755 --- a/ccel.sh +++ b/ccel.sh @@ -5,6 +5,13 @@ then return fi +hasslash=$(echo "$QUERY_STRING"|grep '/') +if [ "$hasslash" = "" ] +then + printf "30 /cgi-bin/ccelauthor.sh?$QUERY_STRING\r\n" + exit 0 +fi printf "20 text/gemini\r\n" printf "=> %s This page was automatically generated from the following CCEL book (http)\n" https://ccel.org/ccel/"$QUERY_STRING" +printf "=> /thml2gmi/ and converted with thml2gmi\n" curl https://ccel.org/ccel/"$QUERY_STRING".xml | ./thml2gmi.py /dev/stdin |
