diff options
-rwxr-xr-x | ctdb/tools/onnode | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ctdb/tools/onnode b/ctdb/tools/onnode index 96d569a2644..2ca3113b9d4 100755 --- a/ctdb/tools/onnode +++ b/ctdb/tools/onnode @@ -320,8 +320,8 @@ push() for f in $files ; do $verbose && echo "Pushing $f" case "$f" in - /*) rsync "$f" "${host}:${f}" ;; - *) rsync "${PWD}/${f}" "${host}:${PWD}/${f}" ;; + /*) rsync "$f" "[${host}]:${f}" ;; + *) rsync "${PWD}/${f}" "[${host}]:${PWD}/${f}" ;; esac done } |