diff --git a/elements/yum/bin/install-packages b/elements/yum/bin/install-packages index 218dd534..11ca0995 100755 --- a/elements/yum/bin/install-packages +++ b/elements/yum/bin/install-packages @@ -43,7 +43,7 @@ do echo "The package $i is not available and will not be installed" fi done -if [ -n "$WHITELIST" ]; then +if [ ${#WHITELIST[@]} -eq 0 ]; then if [ -f /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release ]; then rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release fi