]> git.wh0rd.org Git - home.git/commitdiff
support OWNERS in subdirs
authorMike Frysinger <vapier@gentoo.org>
Wed, 11 Apr 2012 20:55:27 +0000 (16:55 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Apr 2012 19:36:47 +0000 (15:36 -0400)
.bin/r

diff --git a/.bin/r b/.bin/r
index 8e240dc6981a698ed215472949a32a2c3f3dbcf2..d96159412833c0da51ff4ac3e111484f24cda0e7 100755 (executable)
--- 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