diff options
author | Jonas Smedegaard <dr@jones.dk> | 2003-07-11 13:19:12 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2003-07-11 13:19:12 +0000 |
commit | 4b0dcb4365b805215957a6b34cfeaa55ba3c5c42 (patch) | |
tree | 7dd3ef55c6d070a0c5312b3bba4532933b89d070 /localsyncthis | |
parent | 897083f57b4c95bf2c04bbfbe6741d0643497304 (diff) |
Only double-escape remote path (yes - it finally works!).
Diffstat (limited to 'localsyncthis')
-rwxr-xr-x | localsyncthis | 8 |
1 files changed, 4 insertions, 4 deletions
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 |