Project

General

Profile

Revision 80

Added by Deoren Moor about 4 years ago

[issues #120]
Tossing stdout from yum check-update like we have already been doing, but now grepping stderr to toss a verbose status message that we don't care to receive every time email_updates.sh runs.

View differences:

trunk/email_updates.sh
364 364
        yum )
365 365
            # Skip upstream sync unless running in production mode
366 366
            if [[ "${SKIP_UPSTREAM_SYNC}" -eq 0 ]]; then
367
                yum check-update > /dev/null
367

  
368
                # Fixes #120
369
                #
370
                # Toss stdout, but only toss the one RHEL status message from 
371
                # stderr that just mentions the system is receiving updates
372
                # from Red Hat Subscription Management
373
                yum check-update 2> >(grep -v 'This system is receiving')  \
374
                    > /dev/null
375

  
368 376
            fi
369 377
            ;;
370 378
    esac

Also available in: Unified diff