Indeed, you can basically replace this whole script with:
reposync | mail -s 'reposync downloaded new packages' foo@bar.com
In reply to Re^2: Mirror RHN channels for legal subscriptions behind firewall
by jasonk
in thread Mirror RHN channels for legal subscriptions behind firewall
by svenXY
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |