Fix erroneous exit code.
authorCarl Hetherington <cth@carlh.net>
Mon, 5 Oct 2015 09:58:34 +0000 (10:58 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 5 Oct 2015 09:58:34 +0000 (10:58 +0100)
vmbuild

diff --git a/vmbuild b/vmbuild
index 038a50426798caba222ed624064bebfd7e4d5fda..09dd689c9b634c85145dab919854a0ca2708fe55 100755 (executable)
--- a/vmbuild
+++ b/vmbuild
@@ -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