small pixel drawing of a pufferfish pa

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
commit

69b2ec82e262214ee66ed505a481430e9712ad6f

parent

26bdfc20d275db799ef8c1bc15c6837cffb898e7

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M papa

@@ -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 || : } }