Need recursion on scp.
authorjenkins <jenkins@cs2-24.cs>
Sat, 6 Feb 2016 21:08:26 +0000 (21:08 +0000)
committerjenkins <jenkins@cs2-24.cs>
Sat, 6 Feb 2016 21:08:26 +0000 (21:08 +0000)
cdistvm

diff --git a/cdistvm b/cdistvm
index 558d135033e83763d52cad791309d25e995f46b0..b16cb7730cac6dc6b5471bb6e7cec2ed8d2f5f27 100755 (executable)
--- a/cdistvm
+++ b/cdistvm
@@ -73,8 +73,8 @@ command('ssh -p %d carl@localhost "rm -rf cdistvm"' % ports[args.target])
 command('ssh -p %d carl@localhost %s' % (ports[args.target], cdist_cmd))
 if args.command in ['package', 'doxygen', 'manual', 'changelog', 'pot']:
     tmp = tempfile.mkdtemp()
-    command('scp -P %d carl@localhost:cdistvm/* %s/' % (ports[args.target], tmp))
-    command('scp %s/* %s/' % (tmp, args.output))
+    command('scp -r -P %d carl@localhost:cdistvm/* %s/' % (ports[args.target], tmp))
+    command('scp -r %s/* %s/' % (tmp, args.output))
     shutil.rmtree(tmp)
 
 try: