This commit is contained in:
Jephté Clain 2017-08-24 13:39:49 +04:00
parent 377ca5e82f
commit ef00e07b21
1 changed files with 1 additions and 1 deletions

2
ussh
View File

@ -386,7 +386,7 @@ function show_vars() {
function do_ssh() {
local -a sshopts
local onehost r
if [ $# -eq 0 ]; then
if [ ${#hosts[*]} -eq 0 -a $# -eq 0 ]; then
${exec:+exec} "$SSH" "${SSHOPTS[@]}"
return
elif [ "${#hosts[*]}" -gt 1 ]; then