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