aboutsummaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/linux/apt_wait_loop.sh
blob: 60d5d5edb380af680a8f3ed98f56104e21dbf182 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
# Copyright (C) 2018 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

set -ex

function waitLoop {

while sudo fuser /var/lib/dpkg/lock >/dev/null 2>&1 ; do
    echo "Waiting for other software managers to finish..."
    sleep 0.5
done
}