diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-10-03 19:20:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-10-03 19:20:15 +0100 |
| commit | d7eea18442f357b37fd7b4ce02551163aaa76419 (patch) | |
| tree | 05a3384b6b5c3861984480e5acfd65e186e8f7bc /vmbuild | |
| parent | cee16e7d5d48f1320f9ed62c6ea9ec21cd93ddfe (diff) | |
Fix checkout string; bail on error.
Diffstat (limited to 'vmbuild')
| -rwxr-xr-x | vmbuild | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |
