support de rsync
This commit is contained in:
parent
32d5a83fa6
commit
06b2ffe030
8
ussh
8
ussh
|
@ -65,7 +65,11 @@ Les options suivantes sont exclusives à ce script:
|
||||||
"'eval "$(ussh --parse args...)"
|
"'eval "$(ussh --parse args...)"
|
||||||
for host in "${hosts[@]}"; do
|
for host in "${hosts[@]}"; do
|
||||||
${exec:+exec} "$ssh" "${options[@]}" "$host" "${args[@]}"
|
${exec:+exec} "$ssh" "${options[@]}" "$host" "${args[@]}"
|
||||||
done'""
|
done'"
|
||||||
|
|
||||||
|
Si la variable UTOOLS_USSH_RSYNC_SUPPORT contient une valeur non vide, l'analyse
|
||||||
|
des arguments s'arrête à la première valeur qui n'est pas une option, afin de
|
||||||
|
permettre l'utilisation de ce script avec l'option -e de rsync."
|
||||||
}
|
}
|
||||||
|
|
||||||
__PARSED_HOSTS=()
|
__PARSED_HOSTS=()
|
||||||
|
@ -268,7 +272,7 @@ remove=
|
||||||
remove_only=
|
remove_only=
|
||||||
exec=1
|
exec=1
|
||||||
parse=
|
parse=
|
||||||
parse_opts "${PRETTYOPTS[@]}" \
|
parse_opts ${UTOOLS_USSH_RSYNC_SUPPORT:++} "${PRETTYOPTS[@]}" \
|
||||||
--help '$exit_with display_help' \
|
--help '$exit_with display_help' \
|
||||||
-1,-2,-4,-6,-A,-a,-C,-f,-g,-K,-k,-M,-N,-n,-q,-s,-T,-t,-V,-v,-X,-x,-Y,-y '$__update_SSHOPTS "$option_"' \
|
-1,-2,-4,-6,-A,-a,-C,-f,-g,-K,-k,-M,-N,-n,-q,-s,-T,-t,-V,-v,-X,-x,-Y,-y '$__update_SSHOPTS "$option_"' \
|
||||||
-b:,-c:,-D:,-e:,-F:,-I:,-i:,-L:,-l:,-m:,-O:,-o:,-p:,-R:,-S:,-W:,-w: '$__update_SSHOPTS "$option_" "$value_"' \
|
-b:,-c:,-D:,-e:,-F:,-I:,-i:,-L:,-l:,-m:,-O:,-o:,-p:,-R:,-S:,-W:,-w: '$__update_SSHOPTS "$option_" "$value_"' \
|
||||||
|
|
Loading…
Reference in New Issue