From: Mike Frysinger Date: Wed, 16 Apr 2014 22:04:10 +0000 (-0400) Subject: r: handle fancier OWNERS files X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f8260dbddb5fe268af322c854c26f56c39c61597;p=home.git r: handle fancier OWNERS files --- diff --git a/.bin/r b/.bin/r index 47a07ad..31377ef 100755 --- a/.bin/r +++ b/.bin/r @@ -61,7 +61,12 @@ process_reviewers() { for r in ${*//,/ } ; do case ${r} in *OWNERS) - local owners=$(awk -F'@' '{list = list "," $1} END {print substr(list, 2)}' "${r}") + local owners=$( + awk -F'@' ' + ($2 == "chromium.org" || $2 == "google.com") {list = list "," $1} + END {print substr(list, 2)} + ' "${r}" + ) if [[ -z ${owners} ]] ; then err "cannot find OWNERS list" else