transporter le code de retour
This commit is contained in:
parent
6c9b73f542
commit
bb608c1382
4
ussh
4
ussh
|
@ -163,6 +163,7 @@ function remove_keys() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function do_ssh() {
|
function do_ssh() {
|
||||||
|
local r
|
||||||
[ -n "$SSH" ] || SSH=ssh
|
[ -n "$SSH" ] || SSH=ssh
|
||||||
[ "${#hosts[*]}" -gt 1 ] && showtitle=1 || showtitle=
|
[ "${#hosts[*]}" -gt 1 ] && showtitle=1 || showtitle=
|
||||||
for host in "${hosts[@]}"; do
|
for host in "${hosts[@]}"; do
|
||||||
|
@ -174,9 +175,10 @@ function do_ssh() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -n "$showtitle" ] && etitle "${user:+$user@}$host"
|
[ -n "$showtitle" ] && etitle "${user:+$user@}$host"
|
||||||
"$SSH" "${SSHOPTS[@]}" "${user:+$user@}$host" "$@"
|
"$SSH" "${SSHOPTS[@]}" "${user:+$user@}$host" "$@" || r=$?
|
||||||
[ -n "$showtitle" ] && eend
|
[ -n "$showtitle" ] && eend
|
||||||
done
|
done
|
||||||
|
return "${r:-0}"
|
||||||
}
|
}
|
||||||
|
|
||||||
set_defaults nutools
|
set_defaults nutools
|
||||||
|
|
Loading…
Reference in New Issue