plumb.sh: workaround gophers:// TLS issue - randomcrap - random crap programs of varying quality
 (HTM) git clone git://git.codemadness.org/randomcrap
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 7be778aa6c9564eeef540b32f0940dff113aafb2
 (DIR) parent b2bb1c9e8b3c98210611b9990ab5fdc362a6a4fb
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sat, 22 Jul 2023 20:22:34 +0200
       
       plumb.sh: workaround gophers:// TLS issue
       
       Diffstat:
         M config/scripts/plumb.sh             |       6 ++++++
       
       1 file changed, 6 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/config/scripts/plumb.sh b/config/scripts/plumb.sh
       @@ -90,6 +90,12 @@ if [ x"$2" != x"" ]; then
                exit $?
        fi
        
       +# change gophers:// to gopher:// for now.
       +if match "$text" '^gophers://'; then
       +        text="${text#gophers://}"
       +        text="gopher://${text}"
       +fi
       +
        # gopher protocol plumber
        if match "$text" '^(gopher|gophers)://'; then
                filename=$(basename "$text" | sed 's@^\.*@@g')