summaryrefslogtreecommitdiff
path: root/vmbuild
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-10-03 19:20:15 +0100
committerCarl Hetherington <cth@carlh.net>2015-10-03 19:20:15 +0100
commitd7eea18442f357b37fd7b4ce02551163aaa76419 (patch)
tree05a3384b6b5c3861984480e5acfd65e186e8f7bc /vmbuild
parentcee16e7d5d48f1320f9ed62c6ea9ec21cd93ddfe (diff)
Fix checkout string; bail on error.
Diffstat (limited to 'vmbuild')
-rwxr-xr-xvmbuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/vmbuild b/vmbuild
index 3df7840..bcb74ff 100755
--- a/vmbuild
+++ b/vmbuild
@@ -1,7 +1,8 @@
#!/bin/bash
+set -e
if [ "$1" == "" -o "$2" == "" ]; then
- echo "Syntax: $0 <target> <checkout> [<output-dir>]"
+ echo "Syntax: $0 <target> <version> [<output-dir>]"
fi
IFS='-' read distro version bits <<< $1
@@ -22,7 +23,7 @@ fi
nohup vboxheadless --startvm fedora-22-$bits &
sleep 10
ssh -p $port carl@localhost "rm -rf fedora-*"
-ssh -p $port carl@localhost cdist -p dcpomatic -c $checkout -t host package
+ssh -p $port carl@localhost cdist -p dcpomatic -c v$checkout -t host package
if [ "$output" != "" ]; then
scp -P $port carl@localhost:fedora-22-$bits/* $output/
fi