From f8260dbddb5fe268af322c854c26f56c39c61597 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 16 Apr 2014 18:04:10 -0400 Subject: [PATCH] r: handle fancier OWNERS files --- .bin/r | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.5