Fix del command "failing" when password is deleted without deleting parent dir
This commit is contained in:
parent
2fb2092447
commit
c863dcc89f
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 || true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue