From 4e5b044863a8371aa4f67d1ea9152292a15cc0ad Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Sun, 15 Apr 2018 09:35:47 +0200 Subject: [PATCH] gopher.sh: cosmetic --- gopher.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/gopher.sh b/gopher.sh index 3dee0f9..4fd277b 100755 --- a/gopher.sh +++ b/gopher.sh @@ -53,13 +53,11 @@ PORT="`echo "$PORT" | sed 's/^://'`" # Defaults: if [ "$PORT" = "" ];then - if [ "$PROTOCOL" = http ]; then - PORT=80 - elif [ "$PROTOCOL" = https ]; then - PORT=443 - else - PORT=70 - fi + case "$PROTOCOL" in + http) PORT=80 ;; + https) PORT=443;; + *) PORT=70 ;; + esac fi if [ "$MODE" = "" ]; then @@ -88,7 +86,7 @@ EL= if [ "$LINK_COLOR" != "-" ]; then SL="`tput setf $LINK_COLOR``tput setaf $LINK_COLOR`" EL="`tput init`" - export LESS="${LESS}-R" + export LESS="${LESS} -R" fi # 'dialog' or text -- 2.27.0