diff --git a/dotdrop/installer.py b/dotdrop/installer.py index a08cbc1..d3addad 100644 --- a/dotdrop/installer.py +++ b/dotdrop/installer.py @@ -444,7 +444,7 @@ class Installer: # fake the output for readability if not diff: return - self.log.log('diff \"{}\" VS \"{}\"'.format(src, dst)) + self.log.log('diff \"{}\" VS \"{}\"'.format(dst, src)) self.log.emph(diff) def _create_dirs(self, directory): diff --git a/dotdrop/utils.py b/dotdrop/utils.py index c4b82e2..3da940e 100644 --- a/dotdrop/utils.py +++ b/dotdrop/utils.py @@ -72,7 +72,7 @@ def shell(cmd, debug=False): def diff(src, dst, raw=True, opts='', debug=False): """call unix diff to compare two files""" - cmd = 'diff -r {} \"{}\" \"{}\"'.format(opts, src, dst) + cmd = 'diff -r {} \"{}\" \"{}\"'.format(opts, dst, src) _, out = run(shlex.split(cmd), raw=raw, debug=debug) return out