Options can be set in ONNODE_SSH, so this variable is unnecessary.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ssh_opts=
if $push ; then
ONNODE_SSH=push
- ONNODE_SSH_OPTS=""
else
$current && command="cd $PWD && $command"
for n in $nodes ; do
set -o pipefail 2>/dev/null
- ssh_cmd="$ONNODE_SSH $ssh_opts $ONNODE_SSH_OPTS"
+ ssh_cmd="$ONNODE_SSH $ssh_opts"
if $parallel ; then
if $verbose ; then
$ssh_cmd "$n" "$command" 2>&1 | sed -e "s@^@[$n] @"