only run apt-get install if needed - fixes multiple builds being kicked off at once
This commit is contained in:
parent
23867b738b
commit
87a73e8216
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue