aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2023-03-14 15:18:21 +0100
committerPatrick Spek <p.spek@tyil.nl>2023-03-14 15:18:21 +0100
commit872d6ff1e929e67fdf9d0ed529596ef33842f9fb (patch)
treeccbc9d9a8d57ea1bf14551f2a00e6dfc7b07ca83
parent0d05a05eaa4d3a1a3fc682eb9548e56d16751317 (diff)
Fix issue where 'del' clears the entire registry file
-rw-r--r--lib/subcommands/del.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/subcommands/del.bash b/lib/subcommands/del.bash
index abebc5a..3649e69 100644
--- a/lib/subcommands/del.bash
+++ b/lib/subcommands/del.bash
@@ -55,6 +55,6 @@ subcommand()
# Remove the playbook from the registry
cp -- "$playbook_registry" "$buffer"
- grep -Fqvx "$BASHTARD_PLAYBOOK" "$buffer" \
+ grep -Fvx "$BASHTARD_PLAYBOOK" "$buffer" \
| sort > "$playbook_registry"
}