ajouter la variable exec

This commit is contained in:
Jephte CLAIN 2014-06-13 08:42:30 +04:00
parent 2c060670c4
commit af77462313
1 changed files with 3 additions and 1 deletions

4
ussh
View File

@ -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 @ "$@"