Merge pull request #19 from krathalan/master

Fix del command "failing" when password is deleted without deleting parent dir
This commit is contained in:
dylan 2020-06-30 10:23:46 +03:00 committed by GitHub
commit 49b7087890
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 || :
}
}