diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-10-05 10:58:34 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-10-05 10:58:34 +0100 |
| commit | f83a35e904ea398a6b169afa72dfcadeb0cf7383 (patch) | |
| tree | 23524ec69a669ff0442faa4d62d6c551f80934b5 | |
| parent | f0d2e0980e198c6b8c15557a2d8b984bd274c589 (diff) | |
Fix erroneous exit code.
| -rwxr-xr-x | vmbuild | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -28,12 +28,10 @@ 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/ fi +set +e ssh -p $port carl@localhost "sudo /sbin/poweroff" +set -e -set +e -echo "Waiting for virtualbox to finish" while [[ ( -d /proc/$vbox ) && ( -z `grep zombie /proc/$vbox/status` ) ]]; do sleep 1 done -echo "Finished" -exit 0 |
