summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-03-28 11:42:41 +0100
committerCarl Hetherington <cth@carlh.net>2018-03-28 11:42:41 +0100
commitb4574b03425f1b4313b8bbb8f39fe44c592322de (patch)
tree01485bb17b5e16e29b7a1f63890d96875b07d11e
parentdef3d617440501aa4d565df5613ac7856ad042e9 (diff)
Syntax error.
-rwxr-xr-xcdist2
1 files changed, 1 insertions, 1 deletions
diff --git a/cdist b/cdist
index 72c0b60..a8cc80e 100755
--- a/cdist
+++ b/cdist
@@ -178,7 +178,7 @@ def copyfile(a, b):
host = b[:bc]
path = b[bc+1:]
temp_path = os.path.join(os.path.dirname(path), ".tmp." + os.path.basename(path))
- command('scp %s %s' % (scp_escape(a), scp_escape('%s:%s' % (host, temp_path)))
+ command('scp %s %s' % (scp_escape(a), scp_escape('%s:%s' % (host, temp_path))))
command('ssh %s -- mv %s %s' % (host, scp_escape(temp_path), scp_escape(path)))
else:
command('scp %s %s' % (scp_escape(a), scp_escape(b)))