| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function verify_doPackageCheck { |
| |
| local PACKAGE='' |
| |
| |
| cli_checkFiles '/bin/rpm' 'x' |
| |
| for PACKAGE in $PACKAGES;do |
| |
| |
| rpm -q --queryformat "%{NAME}\n" $PACKAGE --quiet |
| |
| |
| if [[ $? -ne 0 ]];then |
| PACKAGES_MISSING[$PACKAGES_COUNT]=$PACKAGE |
| fi |
| |
| |
| PACKAGES_COUNT=$(($PACKAGES_COUNT + 1)) |
| |
| done |
| |
| |
| |
| if [[ ${#PACKAGES_MISSING[*]} -eq 0 ]];then |
| cli_printMessage "`gettext "The required packages are already installed."`" |
| cli_printMessage "$(caller)" 'AsToKnowMoreLine' |
| fi |
| |
| } |