ajouter la variable exec
This commit is contained in:
parent
2c060670c4
commit
af77462313
4
ussh
4
ussh
|
@ -64,7 +64,7 @@ Les options suivantes sont exclusives à ce script:
|
|||
permettent d'effectuer la connexion à partir d'un autre script. Exemple:
|
||||
"'eval "$(ussh --parse args...)"
|
||||
for host in "${hosts[@]}"; do
|
||||
"$ssh" "${options[@]}" "$host" "${args[@]}"
|
||||
${exec:+exec} "$ssh" "${options[@]}" "$host" "${args[@]}"
|
||||
done'""
|
||||
}
|
||||
|
||||
|
@ -185,7 +185,9 @@ function remove_keys() {
|
|||
}
|
||||
|
||||
function show_vars() {
|
||||
[ "${#hosts[*]}" -gt 1 ] && exec=
|
||||
set_var_cmd ssh "$SSH"
|
||||
set_var_cmd exec "$exec"
|
||||
set_array_cmd options SSHOPTS
|
||||
set_array_cmd hosts
|
||||
set_array_cmd args @ "$@"
|
||||
|
|
Loading…
Reference in New Issue