From 6a9aefd522e79914592bc925b4c4540bc4d5d989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Tue, 15 Dec 2020 13:16:13 +0100 Subject: [PATCH] change syntax --- functions.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/functions.sh b/functions.sh index 1711740..7d00bbb 100755 --- a/functions.sh +++ b/functions.sh @@ -353,13 +353,15 @@ sshs() { local TMPBASHCONFIG=$(mktemp -p ${XDG_RUNTIME_DIR} -t bashrc.XXXXXXXX --suffix=.conf) local FILELIST=( "${MSC_BASE}/functions.sh" "${MSC_BASE}/logging" "${MSC_BASE}/myshell_load_fortmpconfig" $(getbashrcfile) ~/.aliases "${MSC_BASE}/aliases" "${MSC_BASE}/PS1" "${MSC_BASE}/bash_completion.d/*" ) + echo "FILELIST: $FILELIST" if [ -e "${HOME}/.config/myshellconfig/sshs_addfiles.conf" ] ; then - for file in $(cat "${HOME}/.config/myshellconfig/sshs_addfiles.conf");do - [ -e "$file" ] && {\ - echo "add $file to FILELIST"; \ - FILELIST+=("$i"); } + for f in $(cat "${HOME}/.config/myshellconfig/sshs_addfiles.conf");do + [ -e "$f" ] && {\ + echo "add $f to FILELIST"; \ + FILELIST+=("$f"); } done fi + echo "FILELIST: $FILELIST" local SSH_OPTS="-o VisualHostKey=no -o ControlMaster=auto -o ControlPersist=15s -o ControlPath=~/.ssh/ssh-%r@%h:%p" # Read /etc/bashrc or /etc/bash.bashrc (depending on distribution) and /etc/profile.d/*.sh first cat << EOF >> "${TMPBASHCONFIG}"