Browse Source

Merge

master
Dirk Alders 3 years ago
parent
commit
b0b417fd57
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      mysync

+ 4
- 1
mysync View File

68
     if localpath is not None:
68
     if localpath is not None:
69
         remotepath = path_filter(kwargs.get(PROP_REMOTE))
69
         remotepath = path_filter(kwargs.get(PROP_REMOTE))
70
         skip = kwargs.get(PROP_SKIP)
70
         skip = kwargs.get(PROP_SKIP)
71
-        cmd_l = ['rsync', '-avn' if DEBUG else '-av', '--delete', '--rsync-path="%s"' % RSYNC_REMOTE_COMMAND, remotepath, localpath]
71
+        if remotepath.find('@') != -1:
72
+            cmd_l = ['rsync', '-avn' if DEBUG else '-av', '--delete', remotepath, localpath]
73
+        else:
74
+            cmd_l = ['rsync', '-avn' if DEBUG else '-av', '--delete', '--rsync-path="%s"' % RSYNC_REMOTE_COMMAND, remotepath, localpath]
72
         if skip is not None:
75
         if skip is not None:
73
             for skip_dir in skip:
76
             for skip_dir in skip:
74
                 if not skip_dir.endswith('/'):
77
                 if not skip_dir.endswith('/'):

Loading…
Cancel
Save