From: Mike Frysinger Date: Wed, 11 Apr 2012 20:55:27 +0000 (-0400) Subject: support OWNERS in subdirs X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1d000f52fb38efb560e829c65cc030de1eb69674;p=home.git support OWNERS in subdirs --- 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