only run apt-get install if needed - fixes multiple builds being kicked off at once

This commit is contained in:
Jesse Andrews 2011-10-24 17:06:58 -07:00
parent 23867b738b
commit 87a73e8216

View file

@ -101,8 +101,8 @@ function kill_unmount() {
exit 1 exit 1
} }
# Install deps # Install deps if needed
apt-get install -y --force-yes kvm libvirt-bin kpartx dpkg -l kvm libvirt-bin kpartx || apt-get install -y --force-yes kvm libvirt-bin kpartx
# Let Ctrl-c kill tail and exit # Let Ctrl-c kill tail and exit
trap kill_unmount SIGINT trap kill_unmount SIGINT