Merge "set -u doesn't permit bash arrays to test -n"

This commit is contained in:
Jenkins 2014-05-21 20:21:11 +00:00 committed by Gerrit Code Review
commit 9941326be6

View File

@ -43,7 +43,7 @@ do
echo "The package $i is not available and will not be installed" echo "The package $i is not available and will not be installed"
fi fi
done done
if [ -n "$WHITELIST" ]; then if [ ${#WHITELIST[@]} -eq 0 ]; then
if [ -f /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release ]; then if [ -f /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release ]; then
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
fi fi