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 TMPBASHCONFIG=$(mktemp -p ${XDG_RUNTIME_DIR} -t bashrc.XXXXXXXX --suffix=.conf)
|
||||
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
|
||||
for f in $(envsubst < ${MSC_BASE}/sshs_addfiles.conf);do
|
||||
logdebug "add to FILELIST: ${f}";
|
||||
FILELIST+=("${f}");
|
||||
echo MSC_BASE: $MSC_BASE
|
||||
SSHS_ADDFILES="${MSC_BASE}/sshs_addfiles.conf"
|
||||
echo SSHS_ADDFILES: $SSHS_ADDFILES
|
||||
if [ -e ${SSHS_ADDFILES} ] ; then
|
||||
for f in $(envsubst < "${SSHS_ADDFILES}");do
|
||||
logdebug "add $f to FILELIST"
|
||||
FILELIST+=("${f}")
|
||||
done
|
||||
else
|
||||
loginfo "Filelist for sshs not found: ${MSC_BASE}/sshs_addfiles.conf"
|
||||
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 -o ControlPath=~/.ssh/master-%C"
|
||||
#local SSH_OPTS="-o VisualHostKey=no -o ControlMaster=yes -o ControlPersist=10s -o ControlPath=~/.ssh/ssh-%C"
|
||||
|
|
Loading…
Reference in a new issue