fix delete for password names that start with a hyphen (#17) Co-authored-by: rafapaezbas <rafa@holepunch.com>
rafapaezbas 15270736+rafapaezbas@users.noreply.github.com
Thu, 19 Oct 2023 03:24:51 +0200
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
pa
→
pa
@@ -79,12 +79,12 @@ }
pw_del() { yn "Delete pass file '$1'?" && { - rm -f "$1.age" + rm -f "./$1.age" # 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 || : } }