diff options
author | Patrick Spek <p.spek@tyil.nl> | 2023-03-14 15:18:21 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-03-14 15:18:21 +0100 |
commit | 872d6ff1e929e67fdf9d0ed529596ef33842f9fb (patch) | |
tree | ccbc9d9a8d57ea1bf14551f2a00e6dfc7b07ca83 | |
parent | 0d05a05eaa4d3a1a3fc682eb9548e56d16751317 (diff) | |
download | bashtard-872d6ff1e929e67fdf9d0ed529596ef33842f9fb.tar.gz bashtard-872d6ff1e929e67fdf9d0ed529596ef33842f9fb.tar.bz2 |
Fix issue where 'del' clears the entire registry file
-rw-r--r-- | lib/subcommands/del.bash | 2 |
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" } |