git://git.nikiroo.be
/
gofetch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a8e347c
)
gopher.sh: cosmetic
author
Niki Roo
<roo.niki@gmail.com>
Sun, 15 Apr 2018 07:35:47 +0000
(09:35 +0200)
committer
Niki Roo
<roo.niki@gmail.com>
Sun, 15 Apr 2018 07:35:47 +0000
(09:35 +0200)
gopher.sh
patch
|
blob
|
blame
|
history
diff --git
a/gopher.sh
b/gopher.sh
index 3dee0f913f5391a4aa496be958d0974afce82b09..4fd277bc2cc3b551ddab79945463cff32f28af00 100755
(executable)
--- a/
gopher.sh
+++ b/
gopher.sh
@@
-53,13
+53,11
@@
PORT="`echo "$PORT" | sed 's/^://'`"
# Defaults:
if [ "$PORT" = "" ];then
# 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
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`"
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
fi
# 'dialog' or text