strip out './' from category creation error message because 'dirname --' is not POSIX compliant...
arĉi arcxi@dismail.de
Sat, 22 Jun 2024 20:57:57 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
pa
→
pa
@@ -28,7 +28,7 @@ die "Passwords do not match"
fi mkdir -p "$(dirname "./$name")" || - die "Couldn't create category '$(dirname "./$name")'" + die "Couldn't create category '$(dirname "./$name" | cut -c3-)'" # Use 'age' to store the password in an encrypted file. # A heredoc is used here instead of a 'printf' to avoid