docs: update

This commit is contained in:
Dylan Araps 2019-12-01 12:26:05 +00:00
parent 5ba0e7c22e
commit bbc0732df7
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 4 additions and 0 deletions

4
pash
View File

@ -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
}
}