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

diff --git a/cdist b/cdist
index c583990bb3e5cbdc5f2f2ae76139a22ab04cf95c..2a1528af53537aae7767c16e663040ec869eafc1 100755 (executable)
--- a/cdist
+++ b/cdist
@@ -122,11 +122,11 @@ def scp_escape(n):
         return n
 
 def copytree(a, b):
-    log('copy %s -> %s' % (a, b))
+    log('copy %s -> %s' % (scp_escape(b), 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))
+    log('copy %s -> %s' % (scp_escape(a), scp_escape(b)))
     os.system('scp %s %s' % (scp_escape(a), scp_escape(b)))
 
 def rmdir(a):