Fix previous.
authorCarl Hetherington <cth@carlh.net>
Sat, 8 Nov 2014 00:02:50 +0000 (00:02 +0000)
committerCarl Hetherington <cth@carlh.net>
Sat, 8 Nov 2014 00:02:50 +0000 (00:02 +0000)
cdist

diff --git a/cdist b/cdist
index 2be1b0642325fab12c203bca5c761aede2fd275e..c583990bb3e5cbdc5f2f2ae76139a22ab04cf95c 100755 (executable)
--- a/cdist
+++ b/cdist
@@ -123,11 +123,11 @@ def scp_escape(n):
 
 def copytree(a, b):
     log('copy %s -> %s' % (a, b))
-    os.system('scp -r "\'%s\'" "\'%s\'"' % (scp_escape(a), scp_escape(b)))
+    os.system('scp -r %s %s' % (scp_escape(a), scp_escape(b)))
 
 def copyfile(a, b):
     log('copy %s -> %s' % (a, b))
-    os.system('scp "\'%s\'" "\'%s\'"' % (scp_escape(a), scp_escape(b)))
+    os.system('scp %s %s' % (scp_escape(a), scp_escape(b)))
 
 def rmdir(a):
     log('remove %s' % a)