Fixed new path creation for vns_create

This commit is contained in:
Vera Lewis
2024-03-31 01:39:05 -05:00
parent 0432e9d86f
commit 1b4a3ff549

1
vns
View File

@@ -236,6 +236,7 @@ vns_create () {
if [ ! -d "$(dirname "$1")" ]; then mkdir -p "$VNS_STORE/$(dirname "$1")"; fi if [ ! -d "$(dirname "$1")" ]; then mkdir -p "$VNS_STORE/$(dirname "$1")"; fi
# Create empty note # Create empty note
mkdir -p "$(dirname "$VNS_STORE/$1.gpg")"
vns_header "$(basename "$1")" | gpg --batch "$(vns_gpgid)" --encrypt -o "$VNS_STORE/$1.gpg" vns_header "$(basename "$1")" | gpg --batch "$(vns_gpgid)" --encrypt -o "$VNS_STORE/$1.gpg"
# Edit the note # Edit the note