fix wrong log-function call
This commit is contained in:
parent
7e05ea402a
commit
5dd4b05c0f
1 changed files with 1 additions and 1 deletions
2
sshs
2
sshs
|
@ -29,7 +29,7 @@ sshs() {
|
||||||
#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"
|
||||||
# Read /etc/bashrc or /etc/bash.bashrc (depending on distribution) and /etc/profile.d/*.sh first
|
# Read /etc/bashrc or /etc/bash.bashrc (depending on distribution) and /etc/profile.d/*.sh first
|
||||||
#ssh -T ${SSH_OPTS} $@ "pwd" >/dev/null 2>/dev/null || { logerror "Server $@ not reachable -> exit"; return 1; }
|
#ssh -T ${SSH_OPTS} $@ "pwd" >/dev/null 2>/dev/null || { logerr "Server $@ not reachable -> exit"; return 1; }
|
||||||
cat << EOF >> "${TMPBASHCONFIG}"
|
cat << EOF >> "${TMPBASHCONFIG}"
|
||||||
[ -e /etc/bashrc ] && BASHRC=/etc/bashrc
|
[ -e /etc/bashrc ] && BASHRC=/etc/bashrc
|
||||||
[ -e /etc/bash.bashrc ] && BASHRC=/etc/bash.bashrc
|
[ -e /etc/bash.bashrc ] && BASHRC=/etc/bash.bashrc
|
||||||
|
|
Loading…
Reference in a new issue