remove verbose from is_this_installed

it can be confusing
This commit is contained in:
Daniel Hansson 2019-08-24 13:14:57 +02:00 committed by GitHub
parent 1c3d8538fc
commit 8712ebe312
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
lib.sh
View File

@ -577,13 +577,10 @@ fi
# Check if program is installed (is_this_installed apache2)
is_this_installed() {
print_text_in_color "$ICyan" "Checking if ${1} is installed..."
if dpkg-query -W -f='${Status}' "${1}" | grep -q "ok installed"
then
print_text_in_color "$IGreen" "${1} is installed."
return 0
else
print_text_in_color "$ICyan" "${1} is not installed."
return 1
fi
}