mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
remove verbose from is_this_installed
it can be confusing
This commit is contained in:
parent
1c3d8538fc
commit
8712ebe312
3
lib.sh
3
lib.sh
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user