From 4b0dcb4365b805215957a6b34cfeaa55ba3c5c42 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 11 Jul 2003 13:19:12 +0000 Subject: Only double-escape remote path (yes - it finally works!). --- localsyncthis | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'localsyncthis') diff --git a/localsyncthis b/localsyncthis index 6f2dc49..ecde9bb 100755 --- a/localsyncthis +++ b/localsyncthis @@ -84,12 +84,12 @@ while [ -n "$workdir" ]; do case $action in download) - rsync --rsh="ssh $ssh_opts" $rsync_opts "$host:'$thatdir/'" "'$thisdir'" - [ $V ] && echo rsync --rsh="ssh $ssh_opts" $rsync_opts "$host:'$thatdir/'" "'$thisdir'" + rsync --rsh="ssh $ssh_opts" $rsync_opts "$host:'$thatdir/'" "$thisdir" + [ $V ] && echo rsync --rsh="ssh $ssh_opts" $rsync_opts "$host:'$thatdir/'" "$thisdir" ;; upload) - rsync --rsh="ssh $ssh_opts" $rsync_opts "'$thisdir/'" "$host:'$thatdir'" - [ $V ] && echo rsync --rsh="ssh $ssh_opts" $rsync_opts "'$thisdir/'" "$host:'$thatdir'" + rsync --rsh="ssh $ssh_opts" $rsync_opts "$thisdir/" "$host:'$thatdir'" + [ $V ] && echo rsync --rsh="ssh $ssh_opts" $rsync_opts "$thisdir/" "$host:'$thatdir'" ;; *) echo "$prg error: You need to specify either --upload or --download!" echo -- cgit v1.2.3