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
}
# Install deps
apt-get install -y --force-yes kvm libvirt-bin kpartx
# Install deps if needed
dpkg -l kvm libvirt-bin kpartx || apt-get install -y --force-yes kvm libvirt-bin kpartx
# Let Ctrl-c kill tail and exit
trap kill_unmount SIGINT