From: Carl Hetherington Date: Mon, 5 Oct 2015 09:58:34 +0000 (+0100) Subject: Fix erroneous exit code. X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=f83a35e904ea398a6b169afa72dfcadeb0cf7383;p=cdist.git Fix erroneous exit code. --- diff --git a/vmbuild b/vmbuild index 038a504..09dd689 100755 --- 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