summaryrefslogtreecommitdiff
path: root/vmbuild
diff options
context:
space:
mode:
authorCarl Hetherington <c.hetherington@yorksj.ac.uk>2015-10-05 19:57:30 +0100
committerCarl Hetherington <c.hetherington@yorksj.ac.uk>2015-10-05 19:57:30 +0100
commitd889728e3a1d58617a84f3f4ba79d9264fe687cf (patch)
treebc2e8ad05a2b0953dccc1ccac81670544a8172e7 /vmbuild
parentd2977e717dfa1c0de9d0255a3b27616b2c74ce5f (diff)
parent78c9faf0f0fb9dfbd65cd3e8bf48a8d2f7e4e692 (diff)
Merge branch 'master' of git.carlh.net:git/cdist
Diffstat (limited to 'vmbuild')
-rwxr-xr-xvmbuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/vmbuild b/vmbuild
index e637d48..c83cc74 100755
--- a/vmbuild
+++ b/vmbuild
@@ -28,7 +28,11 @@ echo "run cdist..."
ssh -p $port carl@localhost cdist -p dcpomatic -c $checkout -t host package
echo "copy from vm to $output..."
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
echo "power off vm..."