diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-01-25 18:25:33 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-01-25 18:25:33 +0000 |
commit | 436739598d8a30acdcd74a1ac24e4783ce8110cf (patch) | |
tree | 447897975f6aa66c94d54cb6ae7e7f9c6e332fc4 /yarns/9000-implements.yarn | |
parent | e1bc54aebce156815a617a079c03b7689b832066 (diff) | |
download | obnam-436739598d8a30acdcd74a1ac24e4783ce8110cf.tar.gz |
Convert no-roots-from-old-gens into yarn
Diffstat (limited to 'yarns/9000-implements.yarn')
-rw-r--r-- | yarns/9000-implements.yarn | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/yarns/9000-implements.yarn b/yarns/9000-implements.yarn index f70ccd07..aeb253d1 100644 --- a/yarns/9000-implements.yarn +++ b/yarns/9000-implements.yarn @@ -352,6 +352,16 @@ Do all lines match? IMPLEMENTS THEN all lines in (\S+) match (\S+) ! grep -E -v -e "$MATCH_2" -- "$DATADIR/$MATCH_1" +Does no line match? + + IMPLEMENTS THEN nothing in (\S+) matches (\S+) + if grep -E -e "$MATCH_2" -- "$DATADIR/$MATCH_1" | grep '.*' + then + echo "At least one line matches, when none may!" 1>&2 + exit 1 + fi + + Check on user group membership ------------------------------ |