mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-13 02:24:27 +05:00
fix: a more verbose dependency check message
This commit is contained in:
@@ -86,10 +86,11 @@ restart_nginx(){
|
||||
}
|
||||
|
||||
dependency_check(){
|
||||
status_msg "Checking for dependencies ..."
|
||||
status_msg "Checking for the following dependencies:"
|
||||
#check if package is installed, if not write name into array
|
||||
for pkg in "${dep[@]}"
|
||||
do
|
||||
echo -e "${cyan}● $pkg ${default}"
|
||||
if [[ ! $(dpkg-query -f'${Status}' --show $pkg 2>/dev/null) = *\ installed ]]; then
|
||||
inst+=($pkg)
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user