summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xvmbuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/vmbuild b/vmbuild
index 09dd689..25f0688 100755
--- a/vmbuild
+++ b/vmbuild
@@ -26,7 +26,11 @@ sleep 10
ssh -p $port carl@localhost "rm -rf fedora-*"
ssh -p $port carl@localhost cdist -p dcpomatic -c $checkout -t host package
if [ "$output" != "" ]; then
- scp -P $port carl@localhost:fedora-22-$bits/* $output/
+ tmp=/var/tmp/copy.$$
+ mkdir -p $tmp
+ scp -P $port carl@localhost:fedora-22-$bits/* $tmp/
+ scp $tmp/*.rpm $output/
+ rm -rf $tmp
fi
set +e
ssh -p $port carl@localhost "sudo /sbin/poweroff"