Fix del command "failing" when password is deleted without deleting parent dir

This commit is contained in:
Hunter Peavey 2020-06-28 15:29:21 -07:00
parent 2fb2092447
commit c863dcc89f
No known key found for this signature in database
GPG Key ID: 1AADE5E728FFC667
1 changed files with 1 additions and 1 deletions

2
pash
View File

@ -60,7 +60,7 @@ pw_del() {
# 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
rmdir -p "${1%/*}" 2>/dev/null || true
}
}