remove redundant and wrong comment 1. the command itself already clearly conveys what it does, so the first sentence is redundant. 2. this command will always fail, even if there are no entries in the same directory as the deleted entry, because it will try to delete its parents up to $PA_DIR, so the second sentence is wrong.
arĉi arcxi@dismail.de
Thu, 04 Jul 2024 20:19:06 +0200
1 files changed,
0 insertions(+),
3 deletions(-)
jump to
M
pa
→
pa
@@ -86,9 +86,6 @@ pw_del() {
yn "Delete password '$name'?" && { rm -f "./$name.age" - # Remove empty parent directories of a password - # entry. It's fine if this fails as it means that - # another entry also lives in the same directory. rmdir -p "$(dirname "./$name")" 2>/dev/null || : git_add_and_commit "./$name.age" "delete '$name'"