fix ip address handling again
This commit is contained in:
parent
7228432765
commit
5718f09924
4
ssh.sh
4
ssh.sh
@ -51,7 +51,6 @@ exit 1
|
||||
|
||||
_checkname(){
|
||||
|
||||
# parse the output from ssh -G
|
||||
for _l; do
|
||||
|
||||
case $_l in hostname)
|
||||
@ -78,7 +77,6 @@ _checkname(){
|
||||
|
||||
shift
|
||||
done
|
||||
[[ ${SHELL} == *bash ]] && printf ${_host} || print -r -- ${_host}
|
||||
}
|
||||
|
||||
_runxdotool(){
|
||||
@ -145,7 +143,7 @@ _ssh() {
|
||||
|
||||
# let ssh parse the command line so we are sane
|
||||
# avoid overriding the hostname via main config
|
||||
_host=$(_checkname $(/usr/bin/ssh -F /dev/null -G $@))
|
||||
_checkname $(/usr/bin/ssh -F /dev/null -G $@)
|
||||
fi
|
||||
|
||||
[[ $($_tmux list-session -F "#S" 2>/dev/null) == *${_sess}* ]] && _s=${_sess}
|
||||
|
Loading…
Reference in New Issue
Block a user