#!/bin/bash

yum clean metadata > /dev/null
yum check-update 2> /dev/null > /dev/null || yum -y update --skip-broken<% @exclude.each do |x| -%> -x <%= x -%><% end -%> > /dev/null
find /etc -type f -name "*.rpmnew" -exec rm -f {} \;

#!/bin/bash

yum clean metadata > /dev/null
yum check-update 2> /dev/null > /dev/null || yum -y update --skip-broken<% @exclude.each do |x| -%> --exclude='<%= x -%>'<% end -%> > /dev/null
find /etc -type f -name "*.rpmnew" -exec rm -f {} \;

Tweak formatting to make it wildcard-safe
Tweak formatting to make it wildcard-safe
