diff options
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 |