Fallback to gopher when no gophers client is found - plumber - Plumber – a modern approach to plumbing
 (HTM) git clone git://r-36.net/plumber
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit d7912bde9e05f704541e615c08cb121b11d59fb3
 (DIR) parent c63af0789f4b8d4eee682f128f346793bf5b4b93
 (HTM) Author: Scarlett McAllister <git@roygbyte.com>
       Date:   Thu, 24 Aug 2023 00:41:19 -0300
       
       Fallback to gopher when no gophers client is found
       
       Signed-off-by: Christoph Lohmann <20h@r-36.net>
       
       Diffstat:
         M openers/textgopheropener            |       8 +++++++-
       
       1 file changed, 7 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/openers/textgopheropener b/openers/textgopheropener
       @@ -7,5 +7,11 @@ then
        fi
        
        cd $HOME/Downloads
       -$XTERM -e sh -c "$PLUMB_TXTGOPHER \"$1\""
       +
       +uri=$1
       +if [ "$PLUMB_TXTGOPHER" != "sacc" ]; then
       +        uri=$(echo "$1" | sed s/^gophers/gopher/)  
       +fi
       +
       +$XTERM -e sh -c "$PLUMB_TXTGOPHER \"$uri\""