CGI-ize the gph only if ${ARTICLE_CGI} is defined - gophercgis - Collection of gopher CGI/DCGI for geomyidae
 (HTM) hg clone https://bitbucket.org/iamleot/gophercgis
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) changeset 29e522c339fc396924111bf6eb240f6c05318b37
 (DIR) parent 11dfa97af3477693c43441e04e2a1c22bc893730
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Fri,  7 Sep 2018 02:26:24 
       
       CGI-ize the gph only if ${ARTICLE_CGI} is defined
       
       Diffstat:
        common/feed.sh |  6 +++++-
        1 files changed, 5 insertions(+), 1 deletions(-)
       ---
       diff -r 11dfa97af347 -r 29e522c339fc common/feed.sh
       --- a/common/feed.sh    Fri Sep 07 01:41:28 2018 +0200
       +++ b/common/feed.sh    Fri Sep 07 02:26:24 2018 +0200
       @@ -22,7 +22,11 @@
                       gsub("\\|", "\\|", cgi)
                       gsub("\\|", "\\|", link)
        
       -               printf("[0|%s|%s?%s|server|port]\n", title, cgi, link)
       +               if (cgi) {
       +                       printf("[0|%s|%s?%s|server|port]\n", title, cgi, link)
       +               } else {
       +                       printf("[h|%s|URL:%s|server|port]\n", title, link)
       +               }
               }
        '
        }