fix files in extra file
This commit is contained in:
parent
135612ed88
commit
35bfdb7dd0
1 changed files with 8 additions and 5 deletions
13
sshs
13
sshs
|
@ -12,16 +12,19 @@ sshs() {
|
||||||
local f
|
local f
|
||||||
local TMPBASHCONFIG=$(mktemp -p ${XDG_RUNTIME_DIR} -t bashrc.XXXXXXXX --suffix=.conf)
|
local TMPBASHCONFIG=$(mktemp -p ${XDG_RUNTIME_DIR} -t bashrc.XXXXXXXX --suffix=.conf)
|
||||||
local FILELIST=()
|
local FILELIST=()
|
||||||
|
# local FILELIST=( "${MSC_BASE}/functions.sh" "${MSC_BASE}/logging" "${MSC_BASE}/myshell_load_fortmpconfig" $(getbashrcfile) ~/.bash_aliases "${MSC_BASE}/aliases" "${MSC_BASE}/PS1" "${MSC_BASE}/bash_completion.d/*" )
|
||||||
|
|
||||||
if [ -e "${MSC_BASE}/sshs_addfiles.conf" ] ; then
|
echo MSC_BASE: $MSC_BASE
|
||||||
for f in $(envsubst < ${MSC_BASE}/sshs_addfiles.conf);do
|
SSHS_ADDFILES="${MSC_BASE}/sshs_addfiles.conf"
|
||||||
logdebug "add to FILELIST: ${f}";
|
echo SSHS_ADDFILES: $SSHS_ADDFILES
|
||||||
FILELIST+=("${f}");
|
if [ -e ${SSHS_ADDFILES} ] ; then
|
||||||
|
for f in $(envsubst < "${SSHS_ADDFILES}");do
|
||||||
|
logdebug "add $f to FILELIST"
|
||||||
|
FILELIST+=("${f}")
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
loginfo "Filelist for sshs not found: ${MSC_BASE}/sshs_addfiles.conf"
|
loginfo "Filelist for sshs not found: ${MSC_BASE}/sshs_addfiles.conf"
|
||||||
fi
|
fi
|
||||||
# logdebug "FILELIST1: ${FILELIST[@]}"
|
|
||||||
local SSH_OPTS="-o VisualHostKey=no -o ControlMaster=auto -o ControlPersist=20s"
|
local SSH_OPTS="-o VisualHostKey=no -o ControlMaster=auto -o ControlPersist=20s"
|
||||||
#local SSH_OPTS="-o VisualHostKey=no -o ControlMaster=auto -o ControlPersist=20s -o ControlPath=~/.ssh/master-%C"
|
#local SSH_OPTS="-o VisualHostKey=no -o ControlMaster=auto -o ControlPersist=20s -o ControlPath=~/.ssh/master-%C"
|
||||||
#local SSH_OPTS="-o VisualHostKey=no -o ControlMaster=yes -o ControlPersist=10s -o ControlPath=~/.ssh/ssh-%C"
|
#local SSH_OPTS="-o VisualHostKey=no -o ControlMaster=yes -o ControlPersist=10s -o ControlPath=~/.ssh/ssh-%C"
|
||||||
|
|
Loading…
Reference in a new issue