From 40a9872f56a07af934257e3f689d75fe0b36632c Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sun, 26 Jan 2020 11:21:14 +0100 Subject: [PATCH] quote diff command arguments (#203) --- dotdrop/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotdrop/utils.py b/dotdrop/utils.py index 1fae268..df073e6 100644 --- a/dotdrop/utils.py +++ b/dotdrop/utils.py @@ -71,10 +71,10 @@ def shell(cmd, debug=False): def diff(original, modified, raw=True, - diff_cmd='diff -r {0} {1}', debug=False): + diff_cmd='diff -r "{0}" "{1}"', debug=False): """compare two files""" if not diff_cmd: - diff_cmd = 'diff -r {0} {1}' + diff_cmd = 'diff -r "{0}" "{1}"' cmd = diff_cmd.format(original, modified) _, out = run(shlex.split(cmd), raw=raw, debug=debug) return out