From 872d6ff1e929e67fdf9d0ed529596ef33842f9fb Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Tue, 14 Mar 2023 15:18:21 +0100
Subject: Fix issue where 'del' clears the entire registry file
---
lib/subcommands/del.bash | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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"
}
--
cgit v1.1