Sfoglia il codice sorgente

BugFix: sudo choose

master
Dirk Alders 3 anni fa
parent
commit
be3dda31de
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      mysync

+ 1
- 1
mysync Vedi File

@@ -68,7 +68,7 @@ def rsync_command(**kwargs):
68 68
     if localpath is not None:
69 69
         remotepath = path_filter(kwargs.get(PROP_REMOTE))
70 70
         skip = kwargs.get(PROP_SKIP)
71
-        if remotepath.find('@') != -1:
71
+        if remotepath.find('root@') != -1:
72 72
             cmd_l = ['rsync', '-avn' if DEBUG else '-av', '--delete', remotepath, localpath]
73 73
         else:
74 74
             cmd_l = ['rsync', '-avn' if DEBUG else '-av', '--delete', '--rsync-path="%s"' % RSYNC_REMOTE_COMMAND, remotepath, localpath]

Loading…
Annulla
Salva