change syntax

This commit is contained in:
Jakobus Schürz 2020-12-15 13:13:39 +01:00
parent f9cc98ac66
commit d237cddf01

View file

@ -355,8 +355,9 @@ sshs() {
if [ -e "${HOME}/.config/myshellconfig/sshs_addfiles.conf" ] ; then
for file in $(cat "${HOME}/.config/myshellconfig/sshs_addfiles.conf");do
echo "add $i to FILELIST"
FILELIST+=("$i")
[ -e "$file" ] && {\
echo "add $file to FILELIST"; \
FILELIST+=("$i"); }
done
fi
local SSH_OPTS="-o VisualHostKey=no -o ControlMaster=auto -o ControlPersist=15s -o ControlPath=~/.ssh/ssh-%r@%h:%p"