list-of-lists-updater: don't try to add the l-o-l
authorAlex Dehnert <adehnert@mit.edu>
Fri, 18 Dec 2009 17:01:09 +0000 (12:01 -0500)
committerAlex Dehnert <adehnert@mit.edu>
Fri, 18 Dec 2009 17:01:09 +0000 (12:01 -0500)
list-of-lists-updater

index 5b5a016f3bab9c20e673caad5dc904e1277a0e2b..4018ac04bbef49cb551b03b17e10b645377e5733 100755 (executable)
@@ -32,7 +32,7 @@ function add_lists
             blanche $prev -a $macl
         fi
         # Add stuff this owns
-        owned=$(athrun ops qy -s get_ace_use list $list | grep LIST | cut -d " " -f 2)
+        owned=$(athrun ops qy -s get_ace_use list $list | grep -v ^$prev\$ | grep LIST | cut -d " " -f 2)
         for newlist in $owned; do
             blanche $prev -a $newlist;
         done;