From 2aca4f21ccc3c6332ad52d199dc3e00a94d99239 Mon Sep 17 00:00:00 2001 From: Jonathan Cobb Date: Wed, 25 Nov 2020 14:06:06 -0500 Subject: [PATCH] use bash var to avoid crazy quoting --- bin/brsync | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/brsync b/bin/brsync index 5c0aa917..05917e72 100755 --- a/bin/brsync +++ b/bin/brsync @@ -24,4 +24,5 @@ if [[ $(echo "${@}" | grep -c -- "-e ") -gt 0 || $(echo "${@}" | grep -c -- "--r die "$0 does not work correctly when -e or --rsh is used, since it sets its own: ${@}" fi -rsync -e ''"$(which ssh)"' -p '"${BUBBLE_SSH_PORT}"'' "${@}" +RSYNC_SSH_OPTS="$(which ssh) -p ${BUBBLE_SSH_PORT}" +rsync -e "${RSYNC_SSH_OPTS}" "${@}"