From be3dda31de21d253b9a037a61e42574f2912a337 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Sun, 17 Jan 2021 18:50:49 +0100 Subject: [PATCH] BugFix: sudo choose --- mysync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysync b/mysync index b27a856..ec8fcee 100755 --- a/mysync +++ b/mysync @@ -68,7 +68,7 @@ def rsync_command(**kwargs): if localpath is not None: remotepath = path_filter(kwargs.get(PROP_REMOTE)) skip = kwargs.get(PROP_SKIP) - if remotepath.find('@') != -1: + if remotepath.find('root@') != -1: cmd_l = ['rsync', '-avn' if DEBUG else '-av', '--delete', remotepath, localpath] else: cmd_l = ['rsync', '-avn' if DEBUG else '-av', '--delete', '--rsync-path="%s"' % RSYNC_REMOTE_COMMAND, remotepath, localpath]