From 1d000f52fb38efb560e829c65cc030de1eb69674 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 11 Apr 2012 16:55:27 -0400 Subject: [PATCH] support OWNERS in subdirs --- .bin/r | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bin/r b/.bin/r index 8e240dc..d961594 100755 --- a/.bin/r +++ b/.bin/r @@ -93,8 +93,8 @@ upload) while [[ $# -gt 0 ]] ; do case $1 in --re) - if [[ $2 == "OWNERS" ]] ; then - owners=$(awk -F'@' '{list = list "," $1} END {print substr(list, 2)}' OWNERS) + if [[ $2 == *"OWNERS" ]] ; then + owners=$(awk -F'@' '{list = list "," $1} END {print substr(list, 2)}' "$2") if [[ -z ${owners} ]] ; then err "cannot find OWNERS list" else -- 2.39.5