sorted comments/source

This commit is contained in:
damage 2025-04-04 22:18:02 +02:00
parent 014e51fa0e
commit e33cfe8c9d

6
s3h.sh
View File

@ -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#*~}"