summaryrefslogtreecommitdiff
path: root/lisp/rsync-ui.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/rsync-ui.el')
-rw-r--r--lisp/rsync-ui.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/rsync-ui.el b/lisp/rsync-ui.el
index 19ce985..4ff4fb0 100644
--- a/lisp/rsync-ui.el
+++ b/lisp/rsync-ui.el
@@ -186,7 +186,7 @@
(defun rsync-ui--find-remote-rsync (host port callback)
(let* ((buffer (generate-new-buffer " *rsync-ui-ssh-check*"))
(script (concat
- "command -v rsync 2>/dev/null || "
+ "command -v rsync 2>/dev/null && exit 0; "
"for path in /run/current-system/sw/bin/rsync "
"/nix/var/nix/profiles/default/bin/rsync "
"/usr/local/bin/rsync; do "