check if apt or dpkg is running

This commit is contained in:
Daniel Hansson 2020-07-18 11:16:46 +02:00 committed by GitHub
parent 2064d01be3
commit f859b7e68f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
lib.sh
View File

@ -1099,6 +1099,8 @@ is_docker_running && is_image_present "$1";
install_docker() {
if ! is_docker_running
then
is_process_running dpkg
is_process_running apt
print_text_in_color "$ICyan" "Installing Docker CE..."
apt update -q4 & spinner_loading
install_if_not curl