summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-11-08 19:36:40 +0000
committerCarl Hetherington <cth@carlh.net>2015-11-08 19:36:40 +0000
commit731dfb6c3d741e282d6d2577db3329b3833abec3 (patch)
treed46e749dbac1b75318086a938e38b3033f8a19de
parentf8b2d1acf362ec0b83ff1a8bbd952011794601fb (diff)
Fix vmbuild for different Fedora versions.
-rwxr-xr-xvmbuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/vmbuild b/vmbuild
index 1906c42..563fe43 100755
--- a/vmbuild
+++ b/vmbuild
@@ -20,7 +20,7 @@ else
exit 1
fi
-nohup vboxheadless --startvm fedora-22-$bits &
+nohup vboxheadless --startvm $target &
vbox=$!
sleep 10
ssh -p $port carl@localhost "rm -rf fedora-*"
@@ -30,7 +30,7 @@ if [ "$output" != "" ]; then
echo "copy from vm to $output..."
tmp=/var/tmp/copy.$$
mkdir -p $tmp
- scp -P $port carl@localhost:fedora-22-$bits/* $tmp/
+ scp -P $port carl@localhost:$target/* $tmp/
scp $tmp/*.rpm $output/
rm -rf $tmp
fi