projects
/
cdist.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8bbd8c
)
Fix previous.
author
Carl Hetherington
<cth@carlh.net>
Sat, 8 Nov 2014 01:46:40 +0000
(
01:46
+0000)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 8 Nov 2014 01:46:40 +0000
(
01:46
+0000)
cdist
patch
|
blob
|
history
diff --git
a/cdist
b/cdist
index 7c7a10f05d5553c6afb69336a210815570027d54..1645a19bb76ddd5640899ef9257ed2c3fe8a4fe9 100755
(executable)
--- a/
cdist
+++ b/
cdist
@@
-115,11
+115,10
@@
def log(m):
def scp_escape(n):
s = n.split(':')
assert(len(s) == 1 or len(s) == 2)
- s[-1] = '"\'%s\'"' % s[-1]
if len(s) == 2:
- return '%s:%s' % (s[0],
s[1]
)
+ return '%s:%s' % (s[0],
'"\'%s\'"'
)
else:
- return s[0]
+ return
'\"%s\"' %
s[0]
def copytree(a, b):
log('copy %s -> %s' % (scp_escape(b), scp_escape(b)))