summaryrefslogtreecommitdiff
path: root/yarns/9000-implements.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-03-11 19:13:08 +0000
committerLars Wirzenius <liw@liw.fi>2014-03-11 19:13:08 +0000
commitf49ccfdb11d022fdf18b578aa8f702f24144af61 (patch)
tree110436e7c25d68aa874c59868a3942b6728a54f9 /yarns/9000-implements.yarn
parentd3b2d55b438b051c3d14ccc72968cc95d19e71c4 (diff)
downloadobnam-f49ccfdb11d022fdf18b578aa8f702f24144af61.tar.gz
Add yarn for no-op backups
Diffstat (limited to 'yarns/9000-implements.yarn')
-rw-r--r--yarns/9000-implements.yarn7
1 files changed, 6 insertions, 1 deletions
diff --git a/yarns/9000-implements.yarn b/yarns/9000-implements.yarn
index baa9ae0c..11d0fab3 100644
--- a/yarns/9000-implements.yarn
+++ b/yarns/9000-implements.yarn
@@ -88,6 +88,11 @@ We need to manipulate extended attributes.
mkdir -p $(dirname "$DATADIR/$MATCH_1")
setfattr --name="$MATCH_2" --value "$MATCH_3" "$DATADIR/$MATCH_1"
+Sometimes we need to remove a file.
+
+ IMPLEMENTS WHEN user (\S+) removes file (\S+)
+ rm -f "$DATADIR/$MATCH_2"
+
Manifest creation and checking
------------------------------
@@ -421,7 +426,7 @@ be careful. `grep -E` regular expressions are used here.
Does any line match?
- IMPLEMENTS THEN (\S+) matches (\S+)
+ IMPLEMENTS THEN (\S+) matches (.*)$
grep -E -e "$MATCH_2" -- "$DATADIR/$MATCH_1"
Do all lines match?