[Debian-NP-Commits] r288 - people/vagrant/simple-cdd
Vagrant Cascadian
debian-np-devel@lists.alioth.debian.org
Sun, 28 Nov 2004 18:58:49 -0700
Author: vagrant-guest
Date: Sun Nov 28 18:58:25 2004
New Revision: 288
Modified:
people/vagrant/simple-cdd/qemu-test
Log:
exit if cd or hard drive image cannot be found.
Modified: people/vagrant/simple-cdd/qemu-test
==============================================================================
--- people/vagrant/simple-cdd/qemu-test (original)
+++ people/vagrant/simple-cdd/qemu-test Sun Nov 28 18:58:25 2004
@@ -27,13 +27,15 @@
if [ -n "$hd_img" ] && [ -r "$hd_img" ]; then
qemu_opts="$qemu_opts -hda $hd_img"
else
- echo "WARNING: hard drive image not readable: $hd_img"
+ echo "ERROR: hard drive image not readable: $hd_img"
+ exit 1
fi
if [ -n "$cd_img" ] && [ -r "$cd_img" ]; then
qemu_opts="$qemu_opts -cdrom $cd_img"
else
- echo "WARNING: CD image not readable: $cd_img"
+ echo "ERROR: CD image not readable: $cd_img"
+ exit 1
fi
# build the CD image