diff --git a/bugs-in-changelog.sh b/bugs-in-changelog.sh index 0ccbba802..b5c54bca0 100755 --- a/bugs-in-changelog.sh +++ b/bugs-in-changelog.sh @@ -31,7 +31,7 @@ fi # Comma-separated list of Bugzilla IDs. bugids=$( git log "$1" | - egrep -io 'RHBZ#[0-9]+|https?://bugzilla.redhat.com/[a-z\.\?/_=]*[0-9]+' | + grep -Eio 'RHBZ#[0-9]+|https?://bugzilla.redhat.com/[a-z\.\?/_=]*[0-9]+' | sed 's/^[^0-9]*//' | sort -u | tr '\n' ',' |