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
|
||||
if [[ -f "$configFile" ]]; then
|
||||
# clear screen // remove dialog colors
|
||||
clear
|
||||
|
||||
# each line equals one config option
|
||||
para=()
|
||||
while read -r configLine; do
|
||||
@ -122,13 +124,11 @@ if [[ -f "$configFile" ]]; then
|
||||
echo "using group options file '$dir/.options'"
|
||||
fi
|
||||
|
||||
# clear screen // remove dialog colors
|
||||
echo "config file '$configFile' selected. connecting..."
|
||||
|
||||
# save selected configFile for next call of s3h
|
||||
echo "$configFile" > "$LAST"
|
||||
|
||||
# extract user@host if ~ in config file name
|
||||
echo "config file '$configFile' selected. connecting..."
|
||||
login=$(basename "$configFile")
|
||||
if [[ "$login" == *"~"* ]]; then
|
||||
login="${login#*~}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user