Skip to content

Commit

Permalink
unified ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosALgit committed Oct 9, 2024
1 parent 7b9b80d commit 65c9685
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions install_functions/wazuh-offline-installation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"\\."
Expand Down

0 comments on commit 65c9685

Please sign in to comment.