From bbc0732df72107e953e6dac263c160097170883e Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 1 Dec 2019 12:26:05 +0000 Subject: [PATCH] docs: update --- pash | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pash b/pash index f5b7ff4..a29ae31 100755 --- a/pash +++ b/pash @@ -56,6 +56,10 @@ pw_add() { pw_del() { yn "Delete pass file '$1'?" && { rm -f "$1.gpg" + + # 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 "${1%/*}" 2>/dev/null } }