sorted comments/source
This commit is contained in:
parent
014e51fa0e
commit
e33cfe8c9d
6
s3h.sh
6
s3h.sh
@ -107,7 +107,9 @@ done
|
|||||||
|
|
||||||
# read config file and connect
|
# read config file and connect
|
||||||
if [[ -f "$configFile" ]]; then
|
if [[ -f "$configFile" ]]; then
|
||||||
|
# clear screen // remove dialog colors
|
||||||
clear
|
clear
|
||||||
|
|
||||||
# each line equals one config option
|
# each line equals one config option
|
||||||
para=()
|
para=()
|
||||||
while read -r configLine; do
|
while read -r configLine; do
|
||||||
@ -122,13 +124,11 @@ if [[ -f "$configFile" ]]; then
|
|||||||
echo "using group options file '$dir/.options'"
|
echo "using group options file '$dir/.options'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# clear screen // remove dialog colors
|
|
||||||
echo "config file '$configFile' selected. connecting..."
|
|
||||||
|
|
||||||
# save selected configFile for next call of s3h
|
# save selected configFile for next call of s3h
|
||||||
echo "$configFile" > "$LAST"
|
echo "$configFile" > "$LAST"
|
||||||
|
|
||||||
# extract user@host if ~ in config file name
|
# extract user@host if ~ in config file name
|
||||||
|
echo "config file '$configFile' selected. connecting..."
|
||||||
login=$(basename "$configFile")
|
login=$(basename "$configFile")
|
||||||
if [[ "$login" == *"~"* ]]; then
|
if [[ "$login" == *"~"* ]]; then
|
||||||
login="${login#*~}"
|
login="${login#*~}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user