X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=gopher.sh;h=26f5854186661a79f3a7f2df950dc11e718108a6;hb=8adaaf0f638121f0d8a0d63b67353ccec2d2ee29;hp=3dee0f913f5391a4aa496be958d0974afce82b09;hpb=a8e347c7dfdcf140cec86553fb0a0f846a19183a;p=gofetch.git diff --git a/gopher.sh b/gopher.sh index 3dee0f9..26f5854 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