diff --git a/install_functions/wazuh-offline-installation.sh b/install_functions/wazuh-offline-installation.sh index aea9a0b..86457f0 100644 --- a/install_functions/wazuh-offline-installation.sh +++ b/install_functions/wazuh-offline-installation.sh @@ -14,14 +14,11 @@ function offline_checkPrerequisites(){ dependencies=( "${@}" ) if [ $1 == "wia_offline_dependencies" ]; then dependencies=( "${@:2}" ) - fi - - if [ $1 == "wia_offline_dependencies" ]; then common_logger "Checking dependencies for Wazuh installation assistant." - else common_logger "Checking prerequisites for Offline installation." fi + for dep in "${dependencies[@]}"; do if [ "${sys_type}" == "yum" ]; then eval "yum list installed 2>/dev/null | grep -q -E ^"${dep}"\\."