Merge pull request #19 from krathalan/master
Fix del command "failing" when password is deleted without deleting parent dir
This commit is contained in:
commit
49b7087890
2
pash
2
pash
|
@ -60,7 +60,7 @@ pw_del() {
|
||||||
# Remove empty parent directories of a password
|
# Remove empty parent directories of a password
|
||||||
# entry. It's fine if this fails as it means that
|
# entry. It's fine if this fails as it means that
|
||||||
# another entry also lives in the same directory.
|
# another entry also lives in the same directory.
|
||||||
rmdir -p "${1%/*}" 2>/dev/null
|
rmdir -p "${1%/*}" 2>/dev/null || :
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue